odoo/odoo#105193
Created by fw-bot
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- ci/documentation: (runtime 60s)
- label
- odoo-dev:master-16.0-fix-primary-btn-media-dialog-load-more-rde-MclL-fw
- head
- 33171c2302519081ab29e53dab7304806a687e94
- merged
- 4 years ago by Romain Derie (rde)
| odoo/odoo | |
|---|---|
| 16.0 | #104583 |
| 17.0 | |
| 18.0 | |
| saas-18.2 | |
| saas-18.3 | |
| saas-18.4 | |
| 19.0 | |
| saas-19.1 | |
| saas-19.2 | |
| saas-19.3 | |
| master | #105193 |
[FW][FIX] web_editor: restore "load more" image button as button style
With commit 1 the "load more" button of the media dialog went from a
btn-primary style to a btn-secondary style, which is displayed a link.
It was done in an Odoo global effort of making each and every screen
having only one (sometimes two at most) primary action to help the UX,
as explained at 2.
But in this case, it seems to more misses with the UX than helping the
user as that button really becomes invisible without it. We already were
afraid of that but still merge it, see 2 again.
Indeed, in secondary style this button is barely visible due to the
unsplash and undraw image results which have an "author" text like on
top of the image which looks like the "load more" style.
This commit is using the btn-odoo class to show it as a button and not
a link to avoid people not seeing it.
btn-odoo is chosen instead of btn-primary as this is how "secondary
important actions" are designed now in Odoo.
Note that in community, it looks like a btn-primary but that's not
related to this PR.
Before:

After:

Forward-Port-Of: #104583