Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] website: allow proper customization of navbar expand classes #163337

Closed

Conversation

qsm-odoo
Copy link
Contributor

Commit 1 introduced a template for the website navbar with a configurable _navbar_expand_class variable... but the variable was acting as a boolean by mistake: if set, it would not set up any class and if not set, it would set the default navbar-expand-lg class.

Meanwhile, a new _navbar_classes variable was introduced allowing customization anyway but it is still worth fixing for consistency. Also, commit 2 and 3 actually used the variable giving it the string "None"... which is just inconsistent and confusing, despite working as intended given the original implementation mistake.

Thanks to imanie383 manuel@vauxoo.com
Closes #126489

Commit [1] introduced a template for the website navbar with a
configurable `_navbar_expand_class` variable... but the variable was
acting as a boolean by mistake: if set, it would not set up any class
and if not set, it would set the default navbar-expand-lg class.

Meanwhile, a new `_navbar_classes` variable was introduced allowing
customization anyway but it is still worth fixing for consistency. Also,
commit [2] and [3] actually used the variable giving it the *string*
"None"... which is just inconsistent and confusing, despite working as
intended given the original implementation mistake.

[1]: odoo@6854ff8
[2]: odoo@2dc3b28
[3]: odoo@bc13176

Thanks to imanie383 <manuel@vauxoo.com>
Closes odoo#126489
@qsm-odoo qsm-odoo added RD research & development, internal work Website labels Apr 25, 2024
@qsm-odoo qsm-odoo self-assigned this Apr 25, 2024
@robodoo
Copy link
Contributor

robodoo commented Apr 25, 2024

Copy link
Contributor Author

@qsm-odoo qsm-odoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@C3POdoo C3POdoo requested a review from a team April 25, 2024 12:28
robodoo pushed a commit that referenced this pull request Apr 25, 2024
Commit [1] introduced a template for the website navbar with a
configurable `_navbar_expand_class` variable... but the variable was
acting as a boolean by mistake: if set, it would not set up any class
and if not set, it would set the default navbar-expand-lg class.

Meanwhile, a new `_navbar_classes` variable was introduced allowing
customization anyway but it is still worth fixing for consistency. Also,
commit [2] and [3] actually used the variable giving it the *string*
"None"... which is just inconsistent and confusing, despite working as
intended given the original implementation mistake.

[1]: 6854ff8
[2]: 2dc3b28
[3]: bc13176

Thanks to imanie383 <manuel@vauxoo.com>
Closes #126489

closes #163337

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
@robodoo robodoo closed this Apr 25, 2024
@robodoo robodoo added the 17.3 label Apr 25, 2024
@qsm-odoo qsm-odoo deleted the master-navbar-expand-cls-fix-qsm branch April 26, 2024 08:59
zel-odoo pushed a commit to odoo-dev/odoo that referenced this pull request Apr 29, 2024
Commit [1] introduced a template for the website navbar with a
configurable `_navbar_expand_class` variable... but the variable was
acting as a boolean by mistake: if set, it would not set up any class
and if not set, it would set the default navbar-expand-lg class.

Meanwhile, a new `_navbar_classes` variable was introduced allowing
customization anyway but it is still worth fixing for consistency. Also,
commit [2] and [3] actually used the variable giving it the *string*
"None"... which is just inconsistent and confusing, despite working as
intended given the original implementation mistake.

[1]: odoo@6854ff8
[2]: odoo@2dc3b28
[3]: odoo@bc13176

Thanks to imanie383 <manuel@vauxoo.com>
Closes odoo#126489

closes odoo#163337

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
17.3 RD research & development, internal work Website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants