Skip to content

Commit 8d15e50

Browse files
committed
[FIX] website: apply custom font size on buttons inside the header
Steps to reproduce: - Enter in edit mode. - Select the 'Header' menu. - Switch the default template to 'Rounded box menu'. - Select again the 'Header' menu and on the 'Navbar' details, update the format value (i.e: 10px) and save. -> Problem: some buttons are not affected by the change of the format value. The problem is that since [1], those buttons have the `rounded-circle` class so their font size is not the custom one (but it is the value of `$font-size-base` instead). To solve the problem, the css rule has been adapted in order to force the font size of the buttons inside the header to the custom value if it exists. [1]: odoo@e3e9c49 opw-3810794 closes odoo#158467 X-original-commit: 75d1245 Signed-off-by: Romain Derie (rde) <[email protected]> Signed-off-by: Colin Louis (loco) <[email protected]>
1 parent 8f49014 commit 8d15e50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/website/static/src/scss/website.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ $-header-nav-link-height: $nav-link-height;
374374
font-size: o-website-value('header-font-size');
375375

376376
.dropdown-menu, .btn {
377-
font-size: inherit;
377+
font-size: inherit !important;
378378
}
379379
}
380380
}

0 commit comments

Comments
 (0)