Skip to content
This repository was archived by the owner on Oct 12, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# CHANGELOG


## v2.0.4
### Fixed
- add outline for danger button
- upgrade fluent css version

## v2.0.3
### Fixed
- add outline for primary button
Expand Down
11 changes: 11 additions & 0 deletions lib/components/Button/Button.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,17 @@ const classnames = require('classnames');
</Button>
```

#### React Danger Button

```jsx
<Button
className='btn-danger'
attr={{container: {'data-test-hook': 'button1'}}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

danger button?

>
Danger Button
</Button>
```

#### React Disabled Button

```jsx
Expand Down
3 changes: 2 additions & 1 deletion lib/components/Button/Button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ $outline-focus-border-width: 1px;
&:focus:not(:disabled) {
color: themed('color-text-white');
background-color: themed('color-bg-btn-danger-focus');
outline: $outline-focus-border-width dashed themed('color-border-focus');
outline: $outline-focus-border-width dashed themed('color-outline-btn-danger-focus');
outline-offset: -2px;
}

&:active:not(:disabled) {
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": "@azure-iot/ux-fluent-controls",
"version": "2.0.3",
"version": "2.0.4",
"description": "Azure IoT Fluent React Controls",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
Expand All @@ -26,7 +26,7 @@
"node": ">=8"
},
"devDependencies": {
"@azure-iot/ux-fluent-css": "^3.0.2",
"@azure-iot/ux-fluent-css": "^3.0.3",
"@types/chai": "^4.0.4",
"@types/classnames": "^2.2.3",
"@types/enzyme": "^2.8.9",
Expand Down