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] web: reintroduce .bg-transparent class #121390

Conversation

chgo-odoo
Copy link
Contributor

== ISSUE ==

With the refactoring of the utilities_custom.scss file, the transparent key from the map actually disappeared. This commit aims to reintroduce the key in order to make the class work.

We also fix some synthax.

== After this commit ==

We reintroduce the .bg-transparent class inside the utilities_custom file. This allow us to extend the default BS's maps rather than override them.

task-3326297
part of task-3326263


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

@robodoo
Copy link
Contributor

robodoo commented May 15, 2023

@C3POdoo C3POdoo added the RD research & development, internal work label May 15, 2023
@chgo-odoo chgo-odoo force-pushed the master-milk-bringing-bg-transparent-back-chgo branch from 1a68cbf to 5e48ace Compare May 15, 2023 11:41
@chgo-odoo chgo-odoo changed the title [IMP] web: Reintroduce .bg-transparent class [IMP] web: reintroduce .bg-transparent class May 15, 2023
@chgo-odoo chgo-odoo force-pushed the master-milk-bringing-bg-transparent-back-chgo branch from 5e48ace to d8bca59 Compare May 15, 2023 13:44
@stefanorigano
Copy link
Contributor

@chgo-odoo thanks and sorry for the late reply.
Please note that BS's utility-classes customization has been moved to utilities_custom_backend.scss ;)

Reminder: you should target 16.3 now

@chgo-odoo chgo-odoo changed the base branch from master to saas-16.3 May 17, 2023 14:35
@chgo-odoo chgo-odoo force-pushed the master-milk-bringing-bg-transparent-back-chgo branch 2 times, most recently from 63fa997 to b4b3d47 Compare May 19, 2023 06:49
@chgo-odoo chgo-odoo changed the title [IMP] web: reintroduce .bg-transparent class [FIX] web: reintroduce .bg-transparent class May 19, 2023
@chgo-odoo chgo-odoo force-pushed the master-milk-bringing-bg-transparent-back-chgo branch from b4b3d47 to 56ae012 Compare May 19, 2023 08:00
@chgo-odoo chgo-odoo force-pushed the master-milk-bringing-bg-transparent-back-chgo branch from 56ae012 to b31edce Compare May 19, 2023 13:22
@chgo-odoo
Copy link
Contributor Author

@stefanorigano Changes done, I also removed the map-merge for the background part. Visually, it woks. Is it technically good?

@chgo-odoo chgo-odoo force-pushed the master-milk-bringing-bg-transparent-back-chgo branch from b31edce to f6358b2 Compare May 22, 2023 10:56
@chgo-odoo chgo-odoo force-pushed the master-milk-bringing-bg-transparent-back-chgo branch from f6358b2 to cadc2e6 Compare May 22, 2023 12:38
@chgo-odoo
Copy link
Contributor Author

@stefanorigano

@chgo-odoo chgo-odoo force-pushed the master-milk-bringing-bg-transparent-back-chgo branch from cadc2e6 to f8aa53c Compare May 23, 2023 14:49
@chgo-odoo
Copy link
Contributor Author

@stefanorigano Changes done and comment updated, how does that look?

Copy link
Contributor

@stefanorigano stefanorigano left a comment

Choose a reason for hiding this comment

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

Thanks @chgo-odoo , just remove the changes in the section's description.
LGTM, ready for tech review 👍

Could you ping [@]pparidans once confirmed green on runbot? Thanks!

addons/web/static/src/scss/bootstrap_review_backend.scss Outdated Show resolved Hide resolved
@chgo-odoo chgo-odoo force-pushed the master-milk-bringing-bg-transparent-back-chgo branch from f8aa53c to bb56740 Compare May 26, 2023 13:01
@chgo-odoo chgo-odoo marked this pull request as ready for review May 26, 2023 14:14
@C3POdoo C3POdoo requested review from a team, pro-odoo and juliusc2066 and removed request for a team May 26, 2023 14:15
@chgo-odoo
Copy link
Contributor Author

chgo-odoo commented May 26, 2023

Hi @pparidans 👋

Could you have a look at this small PR, please?

Wishing you a good longer weekend already !

Copy link
Contributor

@pparidans pparidans left a comment

Choose a reason for hiding this comment

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

@stefanorigano @chgo-odoo thanks for the explanation.

@chgo-odoo could you just check the commit's message ? (not sure that talking about "key" and fixing syntax is still relevant)

== ISSUE ==

With the refactoring of the `utilities_custom.scss` file, we moved our
custom `bg-*` classes to the `bootstrap_review_backend.scss` file.

While doing this, the `bg-transparent` class actually disappeared.
This commit aims to reintroduce the class in the backend.


== After this commit ==

We reintroduce the `.bg-transparent` class inside
the `bootstrap_review_backend` file. We adopt the default Bootstrap
behavior for `background` classes and use a CSS variable to handle the
opacity.

task-3326297
part of task-3326263
@chgo-odoo chgo-odoo force-pushed the master-milk-bringing-bg-transparent-back-chgo branch from bb56740 to e22e58a Compare May 30, 2023 09:11
@chgo-odoo
Copy link
Contributor Author

@pparidans Thanks for reviewing !

The commit message has been updated as suggested. I also added a little explanation about how we build that class.

How does that look?

Copy link
Contributor

@pparidans pparidans left a comment

Choose a reason for hiding this comment

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

It looks like...

@robodoo r+

😉

robodoo pushed a commit that referenced this pull request May 31, 2023
== ISSUE ==

With the refactoring of the `utilities_custom.scss` file, we moved our
custom `bg-*` classes to the `bootstrap_review_backend.scss` file.

While doing this, the `bg-transparent` class actually disappeared.
This commit aims to reintroduce the class in the backend.

== After this commit ==

We reintroduce the `.bg-transparent` class inside
the `bootstrap_review_backend` file. We adopt the default Bootstrap
behavior for `background` classes and use a CSS variable to handle the
opacity.

task-3326297
part of task-3326263

closes #121390

Signed-off-by: Pierre Paridans (app) <app@odoo.com>
robodoo pushed a commit that referenced this pull request May 31, 2023
== ISSUE ==

With the refactoring of the `utilities_custom.scss` file, we moved our
custom `bg-*` classes to the `bootstrap_review_backend.scss` file.

While doing this, the `bg-transparent` class actually disappeared.
This commit aims to reintroduce the class in the backend.

== After this commit ==

We reintroduce the `.bg-transparent` class inside
the `bootstrap_review_backend` file. We adopt the default Bootstrap
behavior for `background` classes and use a CSS variable to handle the
opacity.

task-3326297
part of task-3326263

closes #121390

Signed-off-by: Pierre Paridans (app) <app@odoo.com>
@robodoo robodoo temporarily deployed to merge May 31, 2023 04:37 Inactive
@robodoo robodoo closed this May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants