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

feat(design-system): complete Button, add IconButtons and update stories #2148

Merged
merged 19 commits into from
Jun 16, 2021

Conversation

karrui
Copy link
Contributor

@karrui karrui commented Jun 11, 2021

Problem

This PR adds styling for the button active state. Stories have also been updated.
Also add colorScheme theming for outline, clear, and reverse variants after discussion with @pearlyong

The colorScheme update is to prepare the theming for IconButton component coming in a next PR

Closes #1997

Solution

Features:

  • feat(button): add active state styling to buttons
  • feat: update button stories
  • feat: update button theme to take into account color scheme

@karrui karrui added the react label Jun 11, 2021
@karrui karrui requested review from mantariksh and tshuli June 11, 2021 06:31
@karrui karrui force-pushed the form-v2/ds-colours branch from 5ed71c4 to ab5aaf4 Compare June 11, 2021 07:45
@karrui karrui force-pushed the form-v2/buttons-components branch from 73d54f9 to acc8d43 Compare June 11, 2021 07:47
@karrui karrui marked this pull request as draft June 13, 2021 16:35
Base automatically changed from form-v2/ds-colours to form-v2/develop June 14, 2021 03:41
@karrui karrui force-pushed the form-v2/buttons-components branch from e8bff49 to 3280c5f Compare June 15, 2021 03:06
@karrui karrui changed the title feat(Button): add active state and update stories feat(Button): add active state, colorScheme theming and update stories Jun 15, 2021
@karrui karrui marked this pull request as ready for review June 15, 2021 06:51
@karrui karrui changed the title feat(Button): add active state, colorScheme theming and update stories feat(design-system): add Button active state, colorScheme theming and update stories Jun 15, 2021
Copy link
Contributor

@mantariksh mantariksh left a comment

Choose a reason for hiding this comment

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

yswwl

* fix: remove transparent border from button

* feat: allow button to take in textStyles

* feat: add IconButton component and story

* fix: correctly export IconButton

* feat(IconButton): update icon sizing depending on size
@karrui karrui changed the title feat(design-system): add Button active state, colorScheme theming and update stories feat(design-system): add Button active state, IconButtons, colorScheme theming and update stories Jun 16, 2021
@karrui karrui changed the title feat(design-system): add Button active state, IconButtons, colorScheme theming and update stories feat(design-system): complete Button, add IconButtons and update stories Jun 16, 2021
@karrui karrui merged this pull request into form-v2/develop Jun 16, 2021
@karrui karrui deleted the form-v2/buttons-components branch June 16, 2021 06:54
karrui added a commit that referenced this pull request Jun 24, 2021
…ies (#2148)

* feat(button): add active state styling to buttons

* feat: update button stories

* fix: remove unused imports, add lint rule

* ref(Spinner): update rendering of Spinner to allow for Chakra props

* feat(Button): allow for specific sizing of loading spinner icon

* feat: update button theme to take into account color scheme

only for clear, outline, and reverse variants

* feat(story): update button stories (again)

* feat(story): set default bg to distinguish clear and reverse variant

* feat(story): remove center decorator

* feat(Button): add Solid variant to supersede Primary, Danger, Success

* style(Button): update minimum height to 2.75rem

* feat(story): update stories for new button variants

* feat(docs): update jsdoc of Button.colorScheme

* feat: add sizing theming to Button

* style(Button): update styling of button when disabled

change color from .400 to .300

* style(button): add correct styling if isFullWidth prop is passed in

* fix: remove transparent border from button

* feat: allow button to take in textStyles

* feat(design-system): add IconButton component and story (#2172)

* fix: remove transparent border from button

* feat: allow button to take in textStyles

* feat: add IconButton component and story

* fix: correctly export IconButton

* feat(IconButton): update icon sizing depending on size
@justynoh justynoh mentioned this pull request Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants