Skip to content

Commit

Permalink
fix(ComponentDemo): add padding to align dropdown labels (#1706)
Browse files Browse the repository at this point in the history
* fix(ComponentDemo): add padding to align dropdown labels

* fix(typo): use correct word

Co-authored-by: Jan Child <44503588+janchild@users.noreply.github.com>

Co-authored-by: Jan Child <44503588+janchild@users.noreply.github.com>
Co-authored-by: Alessandra Davila <aledavila@ibm.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
4 people authored Sep 14, 2020
1 parent 56eea7f commit d2612a3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/components/ComponentDemo/ComponentDemo.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ const ComponentDemo = ({ children, src, scope, noInline, components }) => {
}
initialSelectedItem="White"
id="theme-variant"
label="Theme variant selection"
titleText="Theme variant selection"
label="Theme selector"
titleText="Theme selector"
items={Object.keys(themes)}
size="xl"
/>
Expand All @@ -111,10 +111,8 @@ const ComponentDemo = ({ children, src, scope, noInline, components }) => {
light
initialSelectedItem={components[0]}
id="component-variant"
titleText={
childrenArray.length === 1 ? '' : 'Component variant selection'
}
label="Component variant selection"
titleText={childrenArray.length === 1 ? '' : 'Variant selector'}
label="Variant selector"
items={components}
size="xl"
className={cx(variantDropdown, {
Expand Down
4 changes: 4 additions & 0 deletions src/components/ComponentDemo/ComponentDemo.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,10 @@ fieldset.form-group:last-of-type {
[class*='--list-box--light'][class*='--list-box--expanded'] {
border-bottom-width: 1px;
}

[class*='--label'] {
margin-left: 1rem;
}
}

.dropdownRow .variantDropdown {
Expand Down

0 comments on commit d2612a3

Please sign in to comment.