Skip to content

Commit

Permalink
Merge pull request #463 from maykinmedia/fix/1084-Check-borders-after…
Browse files Browse the repository at this point in the history
…-accessibility-changes

♿ #1084 Check borders after accessibility changes
  • Loading branch information
alextreme authored Feb 14, 2023
2 parents ab6e71b + 6726dd3 commit 33d9f36
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/open_inwoner/scss/components/Card/Card.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.card {
--card-color-background: white;
--card-color-border: var(--color-mute);
--card-size-border: var(--border-width);
--card-color-border: var(--color-gray);
--card-size-border: var(--border-width-thin);
--card-size-dog-ear: var(--gutter-width);
--card-spacing: var(--spacing-large);

Expand Down
3 changes: 2 additions & 1 deletion src/open_inwoner/scss/components/Faq/_Faq.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
}

&__list-item {
border: var(--border-width) solid var(--color-mute);
border: var(--border-width-thin) solid var(--color-gray);
border-radius: var(--border-radius);
padding: var(--spacing-large);
}

Expand Down
2 changes: 1 addition & 1 deletion src/open_inwoner/scss/components/File/File.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.file {
&__file {
align-items: center;
border: 1px solid var(--color-mute);
border: var(--border-width-thin) solid var(--color-gray);
border-radius: var(--border-radius);
box-sizing: border-box;
display: flex;
Expand Down
24 changes: 23 additions & 1 deletion src/open_inwoner/scss/components/Form/ButtonRadio.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,38 @@
color: var(--color-primary);
cursor: default;
}
&#negative {
&:checked ~ .button-radio__button {
color: #cf1c08;
cursor: default;
}
}
&#positive {
&:checked ~ .button-radio__button {
color: var(--color-green-dark);
cursor: default;
}
}
}

&__button {
border: 1px solid #d2d2d2;
border: var(--border-width-thin) solid var(--color-gray-light);
border-left: 0;
background-color: var(--color-gray-lightest);
color: var(--color-gray-lighter);
display: inline-block;
padding: 12px;
cursor: pointer;

&[for='negative'] {
border-top-right-radius: var(--border-radius);
border-bottom-right-radius: var(--border-radius);
}

&[for='positive'] {
border-top-left-radius: var(--border-radius);
border-bottom-left-radius: var(--border-radius);
}
}

&:first-child {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
}

&__list-item {
border-bottom: var(--border-width) solid var(--color-mute);
border-bottom: var(--border-width-thin) solid var(--color-gray);
padding: var(--spacing-large) var(--spacing-medium);
}

&__list-item:nth-child(1) {
border-top: var(--border-width) solid var(--color-mute);
border-top: var(--border-width-thin) solid var(--color-gray);
}

h2 {
Expand All @@ -34,7 +34,7 @@
}

&__list-item:nth-child(2) {
border-top: var(--border-width) solid var(--color-mute);
border-top: var(--border-width-thin) solid var(--color-gray);
}

&__list-item {
Expand Down
3 changes: 2 additions & 1 deletion src/open_inwoner/scss/views/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
var(--color-accent-lighter)
);
--border-width: 2px;
--border-width-thin: 1px;
--border-radius: 3px;

// Color.
Expand Down Expand Up @@ -148,7 +149,7 @@
--color-font-accent: var(--color-gray-dark);

--color-body: var(--color-gray-dark);
// changed to #949494 to get the required 3:1 contrast ratio
// changed to #949494 to get the required 3:1 contrast ratio - in case of decorative border use var(--color-gray).
--color-mute: #949494;

/// Font.
Expand Down

0 comments on commit 33d9f36

Please sign in to comment.