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

fix(button): Update button to use semibold weight #829

Merged
merged 12 commits into from
Feb 19, 2019
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
- Update vulnerable version of `lodash` dependency @kuzhelov ([#840](https://github.com/stardust-ui/react/pull/840))
- Add `displayName` property to `Ref` and `Provider` components @layershifter ([#836](https://github.com/stardust-ui/react/pull/836))
- Wrap error text of docs code editor @kuzhelov ([#843](https://github.com/stardust-ui/react/pull/843))
- Fix `Button` Teams theme styles to use semibold weight @notandrew ([#829](https://github.com/stardust-ui/react/pull/829))

<!--------------------------------[ v0.19.2 ]------------------------------- -->
## [v0.19.2](https://github.com/stardust-ui/react/tree/v0.19.2) (2019-02-01)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,12 @@ const buttonStyles: ComponentSlotStylesInput<ButtonProps & ButtonState, any> = {
}
},

content: () => ({
// modifies the text of the button
content: ({ variables }): ICSSInJSStyle => ({
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
fontWeight: variables.contentFontWeight,
}),
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export interface ButtonVariables {
borderRadius: string
circularRadius: string
paddingLeftRightValue: number
contentFontWeight: string

color: string
colorActive: string
Expand Down Expand Up @@ -75,7 +76,7 @@ export default (siteVars: any): ButtonVariables => {
maxWidth: pxToRem(280),
borderRadius: pxToRem(2),
circularRadius: pxToRem(999),
fontWeight: siteVars.fontWeightSemibold,
contentFontWeight: siteVars.fontWeightSemibold,
paddingLeftRightValue: 20,

color: siteVars.colors.grey[900],
Expand Down