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(background): define correct colorvariables for light and black backgrounds #357

Conversation

oliverschuerch
Copy link
Contributor

First, the definition of bg-utility (bg-classes) was changed. If we have a light-background, the variable --contrast-color is defined as the best contrast color (in this case black). If we have a dark-background, it behaves the other way around (the --contrast-color is white). The bg-classes were merged and optimized.
Background-utilities are generated by us now. Bootstrap utilities were removed.
These changes made it easy to refactor the alerts/notifications components as well.

Currently not refactored (but possible) components are: Badges and Buttons.

@oliverschuerch oliverschuerch linked an issue Aug 17, 2022 that may be closed by this pull request
@changeset-bot
Copy link

changeset-bot bot commented Aug 17, 2022

🦋 Changeset detected

Latest commit: 03f4f45

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@swisspost/web-styles Major
@swisspost/web-demo Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

🚀 Preview environment ready: https://preview-357--swisspost-web-frontend.netlify.app

@oliverschuerch oliverschuerch changed the title fix(background): Defines correct colorvariables for light and black backgrounds fix(background): define correct colorvariables for light and black backgrounds Aug 18, 2022
@oliverschuerch oliverschuerch marked this pull request as ready for review August 18, 2022 06:24
@sonarcloud
Copy link

sonarcloud bot commented Aug 18, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@oliverschuerch oliverschuerch merged commit ccbc77a into main Aug 18, 2022
@oliverschuerch oliverschuerch deleted the fix/258-background-text-color-of-nested-background-color-container branch August 18, 2022 15:05
@oliverschuerch oliverschuerch restored the fix/258-background-text-color-of-nested-background-color-container branch August 18, 2022 15:10
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.

fix(background): text-color of nested background-color container
2 participants