Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename type modifier to state to be more accurate #590

Merged
merged 2 commits into from May 23, 2021

Conversation

sebnitu
Copy link
Owner

@sebnitu sebnitu commented May 23, 2021

Problem

There are a few components that use the _type_[value] modifier for displaying variants of info, success, caution and danger states. These should be more accurately renamed to _state_[value] modifiers which will better align with how they're used by the input component which already as a _type_[value] modifier. The input's _type_[value] modifier is used for setting an inputs type of form control (matching the attribute equivalent) styles.

Solution

This PR renames the _type_[value] modifier to _state_[value] for the icon-action and notice components. This better aligns with how the modifier is used on the input component and their purpose.

Ref Issue: Fixes #589

@sebnitu sebnitu merged commit d96a056 into master May 23, 2021
@sebnitu sebnitu deleted the refactor-type-state-modifiers branch May 23, 2021 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename _type modifiers to _state where applicable
1 participant