Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
Merge pull request #196 from Azure/a11y-add-toggle-border
Browse files Browse the repository at this point in the history
adds border to all states of toggle control
  • Loading branch information
bduimstra authored Jun 3, 2020
2 parents af435f5 + edcb78b commit 99c3ba9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 8.0.7
### Changed
- Added border for all states of toggle control for visibility in high contrast mode

## 8.0.6
### Changed
- Added box-shadow to search bar to be accessible on light mastheads.
Expand Down
7 changes: 6 additions & 1 deletion lib/components/Toggle/Toggle.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ $line-height: 3.5*$grid-size;

.toggle-switch {
background-color: var(--color-foreground-default);
border: 1px solid var(--color-foreground-default);
}
}

Expand All @@ -49,6 +50,7 @@ $line-height: 3.5*$grid-size;
.toggle-switch {
left: 25px;
background-color: var(--color-accent-foreground);
border: 1px solid var(--color-accent-foreground);

@include rtl {
left: unset;
Expand All @@ -64,6 +66,7 @@ $line-height: 3.5*$grid-size;

.toggle-switch {
background-color: var(--color-state-disabled);
border: 1px solid var(--color-state-disabled);
}
}
}
Expand All @@ -76,6 +79,7 @@ $line-height: 3.5*$grid-size;

.toggle-switch {
background-color: var(--color-foreground-disabled);
border: 1px solid var(--color-foreground-disabled);
}

.toggle-label {
Expand Down Expand Up @@ -114,6 +118,7 @@ $line-height: 3.5*$grid-size;
height: 2.5*$grid-size;
border-radius: $toggle-switch-border-radius;
background-color: var(--color-foreground-inactive);
border: 1px solid var(--color-foreground-inactive);
transition: $toggle-switch-transition;

pointer-events: none;
Expand All @@ -131,4 +136,4 @@ $line-height: 3.5*$grid-size;
font-size: var(--font-size-default);

vertical-align: middle;
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/azure-iot-ux-fluent-controls",
"version": "8.0.6",
"version": "8.0.7",
"description": "Azure IoT UX Fluent Controls",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
Expand Down

0 comments on commit 99c3ba9

Please sign in to comment.