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

feat(styles): Update buttons colors #2977

Merged
merged 6 commits into from
Jul 18, 2024
Merged

Conversation

imagoiq
Copy link
Contributor

@imagoiq imagoiq commented Apr 18, 2024

No description provided.

@imagoiq imagoiq self-assigned this Apr 18, 2024
@imagoiq imagoiq requested a review from a team as a code owner April 18, 2024 13:13
@imagoiq imagoiq requested a review from gfellerph April 18, 2024 13:13
Copy link

changeset-bot bot commented Apr 18, 2024

🦋 Changeset detected

Latest commit: eebab56

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

This PR includes changesets to release 16 packages
Name Type
@swisspost/design-system-styles Patch
@swisspost/design-system-components-angular-workspace Patch
@swisspost/design-system-components Patch
@swisspost/design-system-demo Patch
@swisspost/design-system-documentation Patch
@swisspost/internet-header Patch
@swisspost/design-system-intranet-header-workspace Patch
@swisspost/design-system-nextjs-integration Patch
@swisspost/design-system-styles-primeng-workspace Patch
@swisspost/design-system-intranet-header Patch
@swisspost/design-system-styles-primeng Patch
@swisspost/design-system-components-react Patch
@swisspost/design-system-components-angular Patch
@swisspost/design-system-intranet-header-showcase Patch
@swisspost/design-system-icons Patch
@swisspost/design-system-migrations 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

@imagoiq imagoiq linked an issue Apr 18, 2024 that may be closed by this pull request
@swisspost-bot
Copy link
Contributor

swisspost-bot commented Apr 18, 2024

Preview environment ready: https://preview-2977--swisspost-web-frontend.netlify.app
Preview environment ready: https://preview-2977--swisspost-design-system-next.netlify.app

Comment on lines +27 to +28
&:where(#{color.$dark-backgrounds}),
:where(#{color.$dark-backgrounds}) & {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Big change, this was necessary to be able to keep style for button with specific color background (e.g. .btn-petrol-bright). This mixin was changed recently to support post-aler[type"..."] and this change the specificity as it adds one element to the list of classes, and then override the style for the specific color background.

@imagoiq
Copy link
Contributor Author

imagoiq commented Apr 18, 2024

@rouvenpost I need your design review to check if it's correct and if I didn't miss any change.

@rouvenpost
Copy link

rouvenpost commented Apr 18, 2024

I think we should remove the «Accent colors» Section altogether. They should not be used anymore.

@imagoiq
Copy link
Contributor Author

imagoiq commented Apr 18, 2024

I think we should remove the «Accent colors» Section altogether. They should not be used anymore.

You're right. They will be deprecated with this ticket: #2863

Copy link

sonarcloud bot commented Apr 22, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@imagoiq imagoiq assigned gfellerph and unassigned imagoiq Apr 25, 2024
@gfellerph gfellerph requested review from alizedebray and removed request for gfellerph May 2, 2024 14:10
@swisspost-bot
Copy link
Contributor

swisspost-bot commented May 29, 2024

Related Previews

@gfellerph gfellerph added the v7 label Jul 18, 2024
Copy link

sonarcloud bot commented Jul 18, 2024

@oliverschuerch oliverschuerch merged commit 9418c67 into main Jul 18, 2024
10 checks passed
@oliverschuerch oliverschuerch deleted the fix/2541-update-buttons-color branch July 18, 2024 12:40
gfellerph pushed a commit that referenced this pull request Jul 18, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @swisspost/design-system-components@7.3.0

### Minor Changes

- Added an invalid message for the card-control component and an icon in
the invalid message of the checkbox and radio button (by
[@davidritter-dotcom](https://github.com/davidritter-dotcom) with
[#2978](#2978))

- Added a `delayed` property to the `post-tooltip` component to allow
delaying its display for a few milliseconds after it is triggered. (by
[@alizedebray](https://github.com/alizedebray) with
[#3245](#3245))

- Added a `post-collapsible-trigger` component to properly handle the
role, ARIA attributes, and event listeners for elements that toggle a
`post-collapsible`. (by [@alizedebray](https://github.com/alizedebray)
with [#3209](#3209))

### Patch Changes

- Fixed an issue with popovers on Firefox ESR that unexpectedly closed
popovers when clicking on content. (by
[@gfellerph](https://github.com/gfellerph) with
[#3211](#3211))

- Prevent the `post-tabs` component from triggering a `post Change`
event before it is loaded. (by
[@alizedebray](https://github.com/alizedebray) with
[#3247](#3247))

-   Updated dependencies:
    -   @swisspost/design-system-styles@7.3.0

## @swisspost/design-system-components-angular@7.3.0

### Minor Changes

- Added a `post-collapsible-trigger` component to properly handle the
role, ARIA attributes, and event listeners for elements that toggle a
`post-collapsible`. (by [@alizedebray](https://github.com/alizedebray)
with [#3209](#3209))

### Patch Changes

-   Updated dependencies:
    -   @swisspost/design-system-components@7.3.0

## @swisspost/design-system-icons@7.3.0

### Minor Changes

- Added icons number 2592, 2593, 2594 and 2595. (by
[@swisspost-bot](https://github.com/swisspost-bot) with
[#3264](#3264))

## @swisspost/internet-header@1.14.0

### Minor Changes

- Added a new stylesheet containing `:root` CSS custom properties to
facilitate implementing styles relative to the header. This will allow
putting sticky content right below the header. (by
[@alizedebray](https://github.com/alizedebray) with
[#3200](#3200))

### Patch Changes

-   Updated dependencies:
    -   @swisspost/design-system-styles@7.3.0

## @swisspost/design-system-styles@7.3.0

### Minor Changes

- Added an invalid message for the card-control component and an icon in
the invalid message of the checkbox and radio button (by
[@davidritter-dotcom](https://github.com/davidritter-dotcom) with
[#2978](#2978))

- Pre-compiled CSS files are now shipped with the package to enable
projects not using Sass to selectively import component styles. (by
[@gfellerph](https://github.com/gfellerph) with
[#3283](#3283))

### Patch Changes

- Fixed visual issues with validated form-elements who receive focus.
(by [@oliverschuerch](https://github.com/oliverschuerch) with
[#3166](#3166))

- Updated buttons colors. (by [@imagoiq](https://github.com/imagoiq)
with [#2977](#2977))

- Updated table colors on dark backgrounds. (by
[@alizedebray](https://github.com/alizedebray) with
[#2718](#2718))

- Switched from light to regular font weight for most texts, excluding
sub-titles. (by [@oliverschuerch](https://github.com/oliverschuerch)
with [#3284](#3284))

## @swisspost/design-system-styles-primeng@7.3.0

### Minor Changes

- Created a Swiss Post Design System theme for PrimeNg datatable. (by
[@alizedebray](https://github.com/alizedebray) with
[#2718](#2718))

### Patch Changes

-   Updated dependencies:
    -   @swisspost/design-system-styles@7.3.0

## @swisspost/design-system-intranet-header@7.3.0

### Patch Changes

-   Updated dependencies:
    -   @swisspost/design-system-styles@7.3.0

## @swisspost/design-system-migrations@7.3.0



## @swisspost/design-system-styles-primeng-workspace@1.0.0

### Major Changes

- Created a workspace to maintain the Swiss Post PrimeNg theme. (by
[@alizedebray](https://github.com/alizedebray) with
[#2718](#2718))

### Patch Changes

-   Updated dependencies:
    -   @swisspost/design-system-styles@7.3.0

## @swisspost/design-system-components-react@7.3.0

### Minor Changes

- Added a `post-collapsible-trigger` component to properly handle the
role, ARIA attributes, and event listeners for elements that toggle a
`post-collapsible`. (by [@alizedebray](https://github.com/alizedebray)
with [#3209](#3209))

### Patch Changes

-   Updated dependencies:
    -   @swisspost/design-system-components@7.3.0

## @swisspost/design-system-documentation@5.3.0

### Minor Changes

- Added a new stylesheet containing `:root` CSS custom properties to
facilitate implementing styles relative to the header. This will allow
putting sticky content right below the header. (by
[@alizedebray](https://github.com/alizedebray) with
[#3200](#3200))

- Added the compatibility table entries for v7. (by
[@oliverschuerch](https://github.com/oliverschuerch) with
[#3294](#3294))

- Added a `delayed` property to the `post-tooltip` component to allow
delaying its display for a few milliseconds after it is triggered. (by
[@alizedebray](https://github.com/alizedebray) with
[#3245](#3245))

- Added documentation on how to get started with the
`@swisspost/design-system-styles-primeng` package. (by
[@alizedebray](https://github.com/alizedebray) with
[#2718](#2718))

- Added a `post-collapsible-trigger` component to properly handle the
role, ARIA attributes, and event listeners for elements that toggle a
`post-collapsible`. (by [@alizedebray](https://github.com/alizedebray)
with [#3209](#3209))

### Patch Changes

- Fixed the documentation heading links by adding the rehype-slug plugin
(by [@davidritter-dotcom](https://github.com/davidritter-dotcom) with
[#3279](#3279))

- Deprecated accent colors. (by
[@davidritter-dotcom](https://github.com/davidritter-dotcom) with
[#3195](#3195))

- Updated tabs to improve visual continuity and readability. (by
[@alizedebray](https://github.com/alizedebray) with
[#3254](#3254))

- Fixed the wrong implementation of the intranet-header changeset.md
file in the changelog/intranet-header docs page. (by
[@oliverschuerch](https://github.com/oliverschuerch) with
[#3293](#3293))

- Fix headers for the `versions.json` file. So it can be loaded and used
from the version-switcher of older documentation pages. (by
[@oliverschuerch](https://github.com/oliverschuerch) with
[#3267](#3267))

- Removed horizontal scrollbar showing up in Firefox, when a docs
specific tab component is present on the page. (by
[@oliverschuerch](https://github.com/oliverschuerch) with
[#3268](#3268))

-   Updated dependencies:
    -   @swisspost/design-system-icons@7.3.0
    -   @swisspost/design-system-components@7.3.0
    -   @swisspost/design-system-styles@7.3.0
    -   @swisspost/internet-header@1.14.0
    -   @swisspost/design-system-components-react@7.3.0

## @swisspost/design-system-components-angular-workspace@1.1.4

### Patch Changes

-   Updated dependencies:
    -   @swisspost/design-system-components@7.3.0
    -   @swisspost/design-system-styles@7.3.0

## @swisspost/design-system-demo@7.3.4

### Patch Changes

-   Updated dependencies:
    -   @swisspost/design-system-styles@7.3.0
    -   @swisspost/design-system-intranet-header@7.3.0
    -   @swisspost/design-system-migrations@7.3.0

## @swisspost/design-system-intranet-header-workspace@3.0.16

### Patch Changes

-   Updated dependencies:
    -   @swisspost/design-system-styles@7.3.0

## @swisspost/design-system-intranet-header-showcase@1.0.4

### Patch Changes

-   Updated dependencies:
    -   @swisspost/design-system-intranet-header@7.3.0

## @swisspost/design-system-nextjs-integration@0.1.8

### Patch Changes

-   Updated dependencies:
    -   @swisspost/design-system-styles@7.3.0
    -   @swisspost/internet-header@1.14.0
    -   @swisspost/design-system-components-react@7.3.0

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Styles: Update buttons
6 participants