Skip to content
This repository was archived by the owner on Oct 12, 2023. It is now read-only.

Commit 21cfd02

Browse files
authored
Merge pull request #21 from misteinb/bugfix/danger-button-outline
add danger button outline
2 parents 331d169 + d71cc19 commit 21cfd02

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# CHANGELOG
22

3+
4+
## v2.0.4
5+
### Fixed
6+
- add outline for danger button
7+
- upgrade fluent css version
8+
39
## v2.0.3
410
### Fixed
511
- add outline for primary button

lib/components/Button/Button.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,17 @@ const classnames = require('classnames');
119119
</Button>
120120
```
121121

122+
#### React Danger Button
123+
124+
```jsx
125+
<Button
126+
className='btn-danger'
127+
attr={{container: {'data-test-hook': 'button1'}}}
128+
>
129+
Danger Button
130+
</Button>
131+
```
132+
122133
#### React Disabled Button
123134

124135
```jsx

lib/components/Button/Button.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ $outline-focus-border-width: 1px;
121121
&:focus:not(:disabled) {
122122
color: themed('color-text-white');
123123
background-color: themed('color-bg-btn-danger-focus');
124-
outline: $outline-focus-border-width dashed themed('color-border-focus');
124+
outline: $outline-focus-border-width dashed themed('color-outline-btn-danger-focus');
125+
outline-offset: -2px;
125126
}
126127

127128
&:active:not(:disabled) {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@azure-iot/ux-fluent-controls",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"description": "Azure IoT Fluent React Controls",
55
"main": "./lib/index.js",
66
"types": "./lib/index.d.ts",
@@ -26,7 +26,7 @@
2626
"node": ">=8"
2727
},
2828
"devDependencies": {
29-
"@azure-iot/ux-fluent-css": "^3.0.2",
29+
"@azure-iot/ux-fluent-css": "^3.0.3",
3030
"@types/chai": "^4.0.4",
3131
"@types/classnames": "^2.2.3",
3232
"@types/enzyme": "^2.8.9",

0 commit comments

Comments
 (0)