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

Clean CSS import #9464

Merged
merged 4 commits into from
Sep 9, 2024
Merged

Clean CSS import #9464

merged 4 commits into from
Sep 9, 2024

Conversation

ger-benjamin
Copy link
Member

@ger-benjamin ger-benjamin commented Sep 3, 2024

Four commits:

  • One to have a single scss entry point per example
  • (One to move $inject after the copyright, just before the usage - in examples)
  • One to fix the css issues in example (see commit message)
  • One to fix the sonar lint issue (the one that make sens here)

For the last point, I discover that: https://github.com/camptocamp/ngeo/compare/GSNGEO-11-clean-css-import?expand=1#diff-1dd2fbbb7774410e5b66e9a554df689ef71981117b2c8fdd6570432cf0a13c59R392

I can imagine an issue with that if we load a external library with css file and another with scss file, targeting the same elements. In this case, the scss one will always have the priority. But in our example... The previous behaviors was weird, that's just problematic that we are "forced" to priorise the scss.

See JIRA issue: GSNGEO-11.
Examples
Storybook
API help
API documentation

@ger-benjamin ger-benjamin self-assigned this Sep 3, 2024
@ger-benjamin ger-benjamin force-pushed the GSNGEO-11-clean-css-import branch 3 times, most recently from 041cff7 to 57818da Compare September 4, 2024 08:53
@ger-benjamin ger-benjamin force-pushed the GSNGEO-11-clean-css-import branch from 57818da to 3f1227d Compare September 4, 2024 09:20
To fix "same specificity weight" problem on examples, I've choosed to
apply example scss in priority. Details:

 - measure (ngeo): won't apply common css first, nonsense.
 - date-picker (ngeo): Can't easily apply bootstrap css first (as before).
 - date-picker (gmf): Can't easily apply bootstrap css first (as before).
 - timeslider (gmf): Can't easily apply bootstrap css first (as before).
@ger-benjamin ger-benjamin force-pushed the GSNGEO-11-clean-css-import branch from 3f1227d to 7133eed Compare September 4, 2024 09:37
@ger-benjamin ger-benjamin marked this pull request as ready for review September 4, 2024 11:29
@sbrunner sbrunner changed the title Gsngeo 11 clean css import Clean CSS import Sep 9, 2024
@ger-benjamin ger-benjamin merged commit 50ff2bc into master Sep 9, 2024
12 of 13 checks passed
@ger-benjamin ger-benjamin deleted the GSNGEO-11-clean-css-import branch September 9, 2024 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants