bemto-button
Advanced tools
Comparing version 0.4.0 to 0.5.0
## Changelog | ||
### v0.5.0 (2018-04-05) | ||
- Added stylelint. | ||
- Added border-radius inheritance on Content element. | ||
- Updated deps. | ||
### v0.4.0 (2018-03-05) | ||
@@ -4,0 +10,0 @@ |
@@ -77,3 +77,3 @@ const bemto = require('bemto-components'); | ||
const BemtoButton = styled(BemtoButtonTag)` | ||
-moz-appearance: none; | ||
-moz-appearance: none; /* stylelint-disable-line property-no-vendor-prefix */ | ||
@@ -87,3 +87,3 @@ position: relative; | ||
vertical-align: baseline; | ||
overflow: visible; /* Needed for IE */ | ||
overflow: visible; /* Needed for IE */ | ||
@@ -95,5 +95,7 @@ box-sizing: border-box; | ||
margin: 0; | ||
border-radius: 0; | ||
white-space: nowrap; | ||
text-align: center; /* TODO: Apply only when there is a set width in style? */ | ||
@@ -128,2 +130,3 @@ justify-content: center; | ||
width: 100%; | ||
border-radius: inherit; /* [4] */ | ||
} | ||
@@ -151,3 +154,3 @@ | ||
&:before { | ||
&::before { | ||
content: "\\a0"; /* nbsp */ | ||
@@ -154,0 +157,0 @@ } |
{ | ||
"name": "bemto-button", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "Complex button foundation based on bemto-components & styled-components", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"lint:css": "stylelint 'lib/**/*.js'", | ||
"test": "jest" | ||
@@ -27,3 +28,3 @@ }, | ||
"dependencies": { | ||
"bemto-components": "^2.0.0" | ||
"bemto-components": "^2.3.1" | ||
}, | ||
@@ -38,4 +39,8 @@ "peerDependencies": { | ||
"jest-styled-components": "^5.0.0", | ||
"react-test-renderer": "16.1.1" | ||
"react-test-renderer": "16.1.1", | ||
"stylelint": "^9.1.3", | ||
"stylelint-config-standard": "^18.2.0", | ||
"stylelint-config-styled-components": "^0.1.1", | ||
"stylelint-processor-styled-components": "^1.3.1" | ||
} | ||
} |
@@ -10,5 +10,3 @@ import React from 'react'; | ||
${BemtoButton.focusCSS(` | ||
box-shadow: 0 0 5px 5px pink; | ||
`)} | ||
${BemtoButton.focusCSS(`box-shadow: 0 0 5px 5px pink;`)} | ||
`; | ||
@@ -15,0 +13,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37646
13
9
236
Updatedbemto-components@^2.3.1