Skip to content

Commit

Permalink
fix(ui-library, storybook): #875 align toggle prop names with design (#…
Browse files Browse the repository at this point in the history
…1022)

Co-authored-by: Barkley <barkley.taylor@accenture.com>
Co-authored-by: Julius Walther <julius.walther@accenture.com>
Co-authored-by: David Kennedy <127498135+davidken91@users.noreply.github.com>
  • Loading branch information
4 people authored Apr 4, 2024
1 parent f7c55d4 commit d6d7536
Show file tree
Hide file tree
Showing 4 changed files with 126 additions and 132 deletions.
16 changes: 8 additions & 8 deletions packages/ui-library/src/components/toggle-switch/index.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ export const styleCustom = typeSafeNestedCss/* css */ `
.blr-label-toggleswitch {
display: flex;
align-items: flex-start;
flex-direction: row;
justify-content: space-between;
& input {
all: initial;
Expand Down Expand Up @@ -32,14 +35,10 @@ export const { tokenizedLight: toggleSwitchLight, tokenizedDark: toggleSwitchDar
}
}
&.leading {
flex-direction: column;
}
&.trailing {
flex-direction: row;
justify-content: space-between;
align-items: center;
&.has-state-label {
flex-direction: column;
}
& > .toggle-content-col {
Expand Down Expand Up @@ -85,6 +84,7 @@ export const { tokenizedLight: toggleSwitchLight, tokenizedDark: toggleSwitchDar
position: absolute;
top: 0;
display: flex;
align-items:center;
}
& > .blr-form-label-inline {
Expand Down Expand Up @@ -139,7 +139,7 @@ export const { tokenizedLight: toggleSwitchLight, tokenizedDark: toggleSwitchDar
}
.toggle-icon > .toggle-icon-class {
color: ${ToggleSwitch.Control.AY11Icon.IconColor.Inactive.Pressed};
color: pink;
}
}
Expand Down
Loading

0 comments on commit d6d7536

Please sign in to comment.