Skip to content

Commit f6fc779

Browse files
author
alexander janet
committed
fix(Button): resolv issue #82, $btn-border-width variable
1 parent cfce989 commit f6fc779

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,12 @@
189189
],
190190
"dependencies": {
191191
"@bootstrap-styled/color": "^1.0.9",
192-
"@bootstrap-styled/css-mixins": "^2.0.5",
192+
"@bootstrap-styled/css-mixins": "^2.0.6",
193193
"@bootstrap-styled/css-utils": "^1.2.6",
194194
"@bootstrap-styled/utils": "^1.7.1",
195195
"@rollup-umd/documentation-cli": "^1.1.1",
196196
"basic-math-utils": "^0.3.4",
197-
"bootstrap-styled": "^2.4.7",
197+
"bootstrap-styled": "^2.4.10",
198198
"classnames": "^2.2.6",
199199
"lodash.omit": "^4.5.0",
200200
"map-to-css-modules": "^1.0.6",

src/Button/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ export const defaultProps = {
2020
'$enable-shadows': false,
2121
'$enable-hover-media-query': true,
2222
'$enable-transitions': true,
23+
'$btn-border-width': '1px',
2324
'$btn-padding-x': '1rem',
2425
'$btn-padding-y': '.5rem',
2526
'$btn-line-height': '1.25',
26-
'$btn-font-weight': 'normal',
2727
'$btn-box-shadow': 'inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075)',
2828
'$btn-focus-box-shadow': '0 0 0 2px rgba(2, 117, 216, 0.25)',
2929
'$btn-active-box-shadow': 'inset 0 3px 5px rgba(0, 0, 0, 0.125)',
@@ -133,6 +133,7 @@ export const propTypes = {
133133
'$btn-border-radius-lg': PropTypes.string,
134134
'$btn-border-radius-sm': PropTypes.string,
135135
'$btn-transition': PropTypes.string,
136+
'$btn-border-width': PropTypes.string,
136137
'$link-hover-decoration': PropTypes.string,
137138
'$enable-rounded': PropTypes.bool,
138139
'$enable-shadows': PropTypes.bool,
@@ -221,7 +222,7 @@ const Button = styled(ButtonUnstyled)`
221222
props.theme['$btn-font-weight'],
222223
props.theme['$btn-line-height'],
223224
props.theme['$btn-transition'],
224-
props.theme['$input-btn-border-width'],
225+
props.theme['$btn-border-width'],
225226
props.theme['$btn-padding-x'],
226227
props.theme['$btn-padding-y'],
227228
props.theme['$font-size-base'],

0 commit comments

Comments
 (0)