diff --git a/src/en/clean-copy/06-Section V. SDKs & UI Libraries/08.md b/src/en/clean-copy/06-Section V. SDKs & UI Libraries/08.md index b4e5d27..8d2234b 100644 --- a/src/en/clean-copy/06-Section V. SDKs & UI Libraries/08.md +++ b/src/en/clean-copy/06-Section V. SDKs & UI Libraries/08.md @@ -70,7 +70,7 @@ An alternative approach is to expose the possibility of defining rules for how e api.options.addRule( 'button.checkout.iconUrl', (data, options) => data.iconUrl -) +); ``` The most coherent implementation of this approach is the CSS technology.[ref CSS](https://www.w3.org/Style/CSS/) We are not actually proposing using a full CSS rule engine in component libraries (because of its overwhelming complexity and excessiveness for most cases), but we are cautiously drawing the reader's attention to the fact that supporting some subset of CSS-like rules could *significantly* simplify the task of customizing UI components. diff --git a/src/ru/clean-copy/06-Раздел V. SDK и UI-библиотеки/08.md b/src/ru/clean-copy/06-Раздел V. SDK и UI-библиотеки/08.md index c4f2319..b56efdb 100644 --- a/src/ru/clean-copy/06-Раздел V. SDK и UI-библиотеки/08.md +++ b/src/ru/clean-copy/06-Раздел V. SDK и UI-библиотеки/08.md @@ -70,7 +70,7 @@ if (data.createOrderButtonIconUrl) { api.options.addRule( 'button.checkout.iconUrl', (data, options) => data.iconUrl -) +); ``` Наиболее последовательная реализация этого подхода — CSS[ref CSS](https://www.w3.org/Style/CSS/). Мы не то чтобы рекомендуем использовать CSS-подобные правила в библиотеках компонентов (в силу потрясающей сложности их имплементации и, в большинстве случаев, избыточности), но осторожно замечаем, что поддержка какого-то простого подмножества подобного рода правил *значительно* облегчает кастомизацию визуальных компонент для разработчиков.