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

Conversation

layershifter
Copy link
Member

@layershifter layershifter commented Jan 31, 2019

Fixes #753.

BREAKING CHANGES

This PR will affect you only if you're using custom styling for DropdownSearchInput component.

Before

const theme = {
  componentStyles: {
    DropdownSearchInput: {
      combobox: { /* your styles */ },
    },
  },
}

After

const theme = {
  componentStyles: {
    DropdownSearchInput: {
      root: { /* your styles */ },
    },
  },
}

@layershifter
Copy link
Member Author

I tried to enforce root presence with typings, but it will break overrides via Provider 👎

@layershifter layershifter added 🚀 ready for review 🧰 fix Introduces fix for broken behavior. labels Jan 31, 2019
@codecov
Copy link

codecov bot commented Feb 1, 2019

Codecov Report

Merging #816 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #816   +/-   ##
=======================================
  Coverage   93.54%   93.54%           
=======================================
  Files          21       21           
  Lines         728      728           
  Branches       69       69           
=======================================
  Hits          681      681           
  Misses         47       47

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7d4c8be...3ff1a04. Read the comment docs.

CHANGELOG.md Outdated
@@ -46,6 +49,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
- Exports `Menu`'s variables as `MenuItem` and `MenuDivider`'s variables in `Teams` theme @mnajdova ([#814](https://github.com/stardust-ui/react/pull/814))
- Fix `Avatar` - Add white circle border in contrast theme @bcalvery ([#795](https://github.com/stardust-ui/react/pull/795))
- Dix `MenuDivider` not shown on horizontal `Menu` @mnajdova ([#813](https://github.com/stardust-ui/react/pull/813))
- Add `root` to `dropdownSearchInputStyles` @layershifter ([#816](https://github.com/stardust-ui/react/pull/816))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

already have the entry at line 24 :)

@@ -6,6 +6,8 @@ const dropdownSearchInputStyles: ComponentSlotStylesInput<
DropdownSearchInputProps,
DropdownVariables
> = {
root: {},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What was the motivation for this? As I see in DropdownSearchInput.tsx we are not using styles.root, nor classes.root. I don't understand why we need this?

@layershifter layershifter changed the title fix(Dropdown): add root to dropdownSearchInputStyles fix(Dropdown): rename combobox to root in dropdownSearchInputStyles Feb 4, 2019
@layershifter layershifter merged commit 746dd31 into master Feb 4, 2019
@layershifter layershifter deleted the fix/dropdown-search-inpur branch February 4, 2019 14:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🧰 fix Introduces fix for broken behavior. 🚀 ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants