Skip to content
Snippets Groups Projects
Commit 68a1e88b authored by Benoit Socias's avatar Benoit Socias
Browse files

[FIX] website: display selected font's name

Since [1] when a `/` was added as default text when no option is
selected in dropdown options, the selected font name is not displayed
anymore inside font options because they both rely on specifying a
`content` on the `::before` pseudo-element inside the `we-toggler`.
Because the empty value text also includes a `:empty` inside its
selector, that rule wins over the font name.

This commit makes the font name rule `!important` so that it gets
applied instead of the empty selection rule.

[1]: https://github.com/odoo/odoo/commit/dc6ff20386567abbabcb2d35388a3dc8995cab28



task-3256509

closes odoo/odoo#117448

Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
parent aa96039a
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,8 @@ $i: 1;
font-family: o-safe-get($font-config, 'family', $font-family-base);
&::before {
content: $font-name;
// Must prevail against the '/' for missing values.
content: $font-name !important;
}
}
$i: $i + 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment