Skip to content

Commit

Permalink
Merge pull request #410 from vtex/feature/button-danger-tertiary
Browse files Browse the repository at this point in the history
Add "danger tertiary" Button variation
  • Loading branch information
guilhermebruzzi authored Nov 14, 2018
2 parents 0f4f21e + 8c146b2 commit d4801ce
Show file tree
Hide file tree
Showing 8 changed files with 1,599 additions and 9 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [7.6.2] - 2018-11-14

## [7.6.1] - 2018-11-14

### Added

- **Button** Add "danger tertiary" Button variation

## [7.6.0] - 2018-11-09

### Added
Expand Down
4 changes: 2 additions & 2 deletions _releasy.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"notes": true,
"npm": true,
"notes": true,
"npm": true
}
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"vendor": "vtex",
"name": "styleguide",
"version": "7.6.0",
"version": "7.6.2",
"title": "VTEX Styleguide",
"description": "The VTEX Styleguide components for the Render framework",
"builders": {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vtex/styleguide",
"version": "7.6.0",
"version": "7.6.2",
"scripts": {
"test": "react-scripts test --env=jsdom",
"test:codemod": "jest codemod",
Expand Down Expand Up @@ -63,7 +63,7 @@
"react-docgen-displayname-handler": "^2.1.1",
"react-responsive-modal": "^2.0.1",
"react-virtualized": "^9.19.1",
"vtex-tachyons": "^2.7.0"
"vtex-tachyons": "^2.8.4"
},
"husky": {
"hooks": {
Expand Down
23 changes: 23 additions & 0 deletions react/components/Button/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ Types
<span className="mr4">
<Button variation="danger">Danger</Button>
</span>
<span className="mr4">
<Button variation="danger-tertiary">Danger Tertiary</Button>
</span>
</div>
<div className="mt4">
<span className="mr4">
Expand All @@ -40,6 +43,9 @@ Types
<span className="mr4">
<Button variation="danger" disabled>Danger</Button>
</span>
<span className="mr4">
<Button variation="danger-tertiary" disabled>Danger Tertiary</Button>
</span>
</div>
</div>
```
Expand Down Expand Up @@ -116,6 +122,23 @@ Sizes
</Button>
</span>
</div>
<div className="mb4">
<span className="mr4">
<Button variation="danger-tertiary" size="small">
Small
</Button>
</span>
<span className="mr4">
<Button variation="danger-tertiary" size="regular">
Default
</Button>
</span>
<span className="mr4">
<Button variation="danger-tertiary" size="large">
Large
</Button>
</span>
</div>
</div>
```

Expand Down
9 changes: 9 additions & 0 deletions react/components/Button/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,15 @@ class Button extends Component {
}
break
}
case 'danger-tertiary': {
if (disabled) {
classes += 'bg-transparent b--transparent c-disabled '
} else {
classes +=
'bg-transparent b--transparent c-danger hover-b--transparent hover-c-danger '
}
break
}
}

if (!disabled) {
Expand Down
2 changes: 1 addition & 1 deletion react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vtex.styleguide",
"dependencies": {
"react-responsive-modal": "^2.0.1",
"vtex-tachyons": "^2.3.0",
"vtex-tachyons": "^2.8.4",
"react-virtualized": "^9.19.1"
}
}
Loading

0 comments on commit d4801ce

Please sign in to comment.