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(styles): Small variants for checkbox and radio #2086

Merged
merged 9 commits into from
Oct 19, 2023

Conversation

imagoiq
Copy link
Contributor

@imagoiq imagoiq commented Oct 17, 2023

Same PR as #2067 which was merged too soon.

@imagoiq imagoiq self-assigned this Oct 17, 2023
@changeset-bot
Copy link

changeset-bot bot commented Oct 17, 2023

🦋 Changeset detected

Latest commit: 0846ef1

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

This PR includes changesets to release 8 packages
Name Type
@swisspost/design-system-styles Patch
@swisspost/design-system-components-angular 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 Patch
@swisspost/design-system-components-react 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

@swisspost-bot
Copy link
Contributor

swisspost-bot commented Oct 17, 2023

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

Base automatically changed from refactor/1916-form-check-remove-boostrap to main October 19, 2023 07:34
# Conflicts:
#	packages/styles/src/components/form-validation.scss
#	packages/styles/src/mixins/_form-checks.scss
@sonarcloud
Copy link

sonarcloud bot commented Oct 19, 2023

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

@imagoiq imagoiq marked this pull request as ready for review October 19, 2023 07:44
@imagoiq imagoiq requested review from gfellerph and removed request for gfellerph October 19, 2023 07:44
@imagoiq
Copy link
Contributor Author

imagoiq commented Oct 19, 2023

Merge as it was already reviewed in #2067

@imagoiq imagoiq merged commit 34d518e into main Oct 19, 2023
11 of 12 checks passed
@imagoiq imagoiq deleted the feat/1916-small-variants-checkbox-radio branch October 19, 2023 08:30
@imagoiq imagoiq linked an issue Oct 19, 2023 that may be closed by this pull request
gfellerph pushed a commit that referenced this pull request Oct 24, 2023
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/[email protected]

### Minor Changes

- Added a new button to clear the text in the search box. (by
[@b1aserlu](https://github.com/b1aserlu) with
[#2036](#2036))

### Patch Changes

- Added hide-buttons prop to hide all breadcrumbs buttons. (by
[@imagoiq](https://github.com/imagoiq) with
[#2027](#2027))

- Fixed internet-header search focus truncated on focus-within. (by
[@imagoiq](https://github.com/imagoiq) with
[#2043](#2043))

- Compressed styles output. (by [@imagoiq](https://github.com/imagoiq)
with [#2098](#2098))

-   Updated dependencies:
    -   @swisspost/[email protected]

## @swisspost/[email protected]

### Patch Changes

- Fixed misplaced custom icons in “post-alert” elements with actions.
(by [@alizedebray](https://github.com/alizedebray) with
[#2094](#2094))

- Updated the keyboard navigation on the `post-tabs` component. (by
[@alizedebray](https://github.com/alizedebray) with
[#2093](#2093))

- Fixed tabs count announcement with VoiceOver. (by
[@imagoiq](https://github.com/imagoiq) with
[#2047](#2047))

- Compressed styles output. (by [@imagoiq](https://github.com/imagoiq)
with [#2098](#2098))

-   Updated dependencies:
    -   @swisspost/[email protected]

## @swisspost/[email protected]

### Patch Changes

- Changed the main title of the intranet-header from `<h2>` to `<h1>`.
(by [@b1aserlu](https://github.com/b1aserlu) with
[#2104](#2104))
-   Updated dependencies:
    -   @swisspost/[email protected]

## @swisspost/[email protected]

### Patch Changes

- Refactored the grid-system: adjusted container paddings, added
responsive gutter-widths. Updated grid docs. (by
[@oliverschuerch](https://github.com/oliverschuerch) with
[#2045](#2045))

- Added small variants for checkbox and radio buttons. Lowered font-size
of validation blocks for form elements. (by
[@imagoiq](https://github.com/imagoiq) with
[#2086](#2086))

- Fixed missing active tab border on HTML component. (by
[@imagoiq](https://github.com/imagoiq) with
[#2037](#2037))

- Fixed active switch control showing a check icon in Chrome. (by
[@alizedebray](https://github.com/alizedebray) with
[#2090](#2090))

## @swisspost/[email protected]

### Minor Changes

- Added a docs page for our spacing utilities (by
[@davidritter-dotcom](https://github.com/davidritter-dotcom) with
[#1988](#1988))

- Added a docs page for our grid-system. (by
[@oliverschuerch](https://github.com/oliverschuerch) with
[#1947](#1947))

### Patch Changes

- Refactored the grid-system: adjusted container paddings, added
responsive gutter-widths. Updated grid docs. (by
[@oliverschuerch](https://github.com/oliverschuerch) with
[#2045](#2045))

- Fixed the "fixed" control in the `post-alert` documentation. (by
[@alizedebray](https://github.com/alizedebray) with
[#2094](#2094))

-   Updated dependencies:
    -   @swisspost/[email protected]
    -   @swisspost/[email protected]
    -   @swisspost/[email protected]
    -   @swisspost/[email protected]

## @swisspost/[email protected]

### Patch Changes

-   Updated dependencies:
    -   @swisspost/[email protected]

## @swisspost/[email protected]

### Patch Changes

-   Updated dependencies:
    -   @swisspost/[email protected]

## @swisspost/[email protected]

### Patch Changes

-   Updated dependencies:
    -   @swisspost/[email protected]
    -   @swisspost/[email protected]
imagoiq added a commit that referenced this pull request Nov 8, 2023
## What

This PR is a bit confusing as it addresses two problems.
1. Checked radio button were creating a visual shift in inline layout.
It was fixed with #2086
by using a border instead of a margin. But it created the second
following problem.
2. Checked radio button on dark background blends the circle indicator
with the background. #2170

Other additions:
- Added inline layout to snapshot

## UI

### Before


![image](https://github.com/swisspost/design-system/assets/12294151/a4f5b593-51b3-49aa-bbbb-cb73e39b7bae)


![image](https://github.com/swisspost/design-system/assets/12294151/1c8c2a1b-eab9-418b-ba4c-f2dff51668fa)

### After


![image](https://github.com/swisspost/design-system/assets/12294151/e2d8551b-7d5d-4474-a731-9e24f542a4f5)


![image](https://github.com/swisspost/design-system/assets/12294151/52a80a1d-ceef-4b07-b053-4d59a4aa35f2)

---------

Co-authored-by: Philipp Gfeller <[email protected]>
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.

Small variants for radio buttons and checkboxes
2 participants