Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

fix(Dropdown): rename combobox to root in dropdownSearchInputStyles #816

Merged
merged 9 commits into from
Feb 4, 2019
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
### Features
- Accessibility for menu divider @jurokapsiar ([#822](https://github.com/stardust-ui/react/pull/822))

### BREAKING CHANGES
- Rename `combobox` to `root` in `dropdownSearchInputStyles` @layershifter ([#816](https://github.com/stardust-ui/react/pull/816))

<!--------------------------------[ v0.19.2 ]------------------------------- -->
## [v0.19.2](https://github.com/stardust-ui/react/tree/v0.19.2) (2019-02-01)
[Compare changes](https://github.com/stardust-ui/react/compare/v0.19.1...v0.19.2)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class DropdownSearchInput extends UIComponent<ReactProps<DropdownSearchInputProp
onFocus={this.handleFocus}
onKeyUp={this.handleKeyUp}
wrapper={{
styles: styles.combobox,
styles: styles.root,
...accessibilityComboboxProps,
}}
input={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ const dropdownSearchInputStyles: ComponentSlotStylesInput<
DropdownSearchInputProps,
DropdownVariables
> = {
root: ({ variables: v }): ICSSInJSStyle => ({
flexBasis: v.comboboxFlexBasis,
flexGrow: 1,
}),

input: ({ variables: v }): ICSSInJSStyle => ({
width: '100%',
backgroundColor: v.backgroundColor,
Expand All @@ -14,11 +19,6 @@ const dropdownSearchInputStyles: ComponentSlotStylesInput<
borderBottomColor: 'transparent',
},
}),

combobox: ({ variables: v }): ICSSInJSStyle => ({
flexBasis: v.comboboxFlexBasis,
flexGrow: 1,
}),
}

export default dropdownSearchInputStyles