Skip to content

Commit

Permalink
[FIX] theme_enark: set a real boolean value to btn-outline-primary
Browse files Browse the repository at this point in the history
For each theme, there are files redefining the different website SCSS
variables, in order for the color palettes, fonts, buttons,... to have
the styles defined by them. These redefinitions are also used by the
"Theme Options", to show the current values in the different widgets.

In order for the primary buttons to be "outlined", the "Enark" theme set
the `btn-primary-outline` variable to `'true'`. However, this value
should be a boolean instead of a string. Indeed, since the option does
not recognize the string value, the "Buttons Primary Style" widget
therefore shows a "/" instead of "Outline", which is not correct.

This commit fixes this by setting a boolean value.

opw-3957157

closes #814

X-original-commit: 14ff983
Signed-off-by: Quentin Smetz (qsm) <[email protected]>
  • Loading branch information
sobo-odoo committed Jun 21, 2024
1 parent b4c5bea commit 3cd2158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion theme_enark/static/src/scss/primary_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ $o-website-values-palettes: (
'buttons-font': 'Bitter',
'footer-template': 'descriptive',
'header-links-style': 'outline',
'btn-primary-outline': 'true',
'btn-primary-outline': true,
),
);

Expand Down

0 comments on commit 3cd2158

Please sign in to comment.