[REF] web: field decoration
This commit refactors the way the decoration-xxx attributes are applied to field widgets/components, in a way that it can be overridden in a given field or component to generate the approriate className. By default, 'decoration-x' applies className 'text-x'. This will be necessary for the new 'FieldBadge' component, which needs to apply 'bg-x' classNames instead of 'text-x'. Part of task 2195254
Showing
- addons/web/static/src/js/fields/abstract_field.js 14 additions, 1 deletionaddons/web/static/src/js/fields/abstract_field.js
- addons/web/static/src/js/fields/abstract_field_owl.js 41 additions, 28 deletionsaddons/web/static/src/js/fields/abstract_field_owl.js
- addons/web/static/src/js/views/basic/basic_view.js 2 additions, 3 deletionsaddons/web/static/src/js/views/basic/basic_view.js
Loading
Please register or sign in to comment