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

adds border to all states of toggle control #196

Merged
merged 2 commits into from
Jun 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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