-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: moved btp button examples into the BTP subfolder (#4925)
* fix: moved btp button elements into the btp sub-section and added btp modifier[ci visual] BREAKING CHANGE: `fd-button--btp` is required to have a badge on btp button * fix: excessive CSS overrides [ci visual] * fix: fixed incorrect usage of the badged buttons in tool-header[ci visual] * fix: fall back to the main version of the button[ci visual]
- Loading branch information
1 parent
d1a6ffd
commit b54bee9
Showing
9 changed files
with
87 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
BTP button is an over-style over the Button(Horizon) and is intended to be used within the controls and patterns for the BTP area. | ||
BTP over-styling adds wo additional button types: `tool header` and `nested` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import toolHeaderButtonExampleHtml from './tool-header.example.html?raw'; | ||
import nestedButtonExampleHtml from './nested.example.html?raw'; | ||
import description from './button.md?raw'; | ||
|
||
import '../../../src/icon.scss'; | ||
import '../../../src/button.scss'; | ||
|
||
export default { | ||
title: 'BTP/Button', | ||
parameters: { | ||
description, | ||
tags: ['a11y', 'btp', 'horizon-only'] | ||
} | ||
}; | ||
|
||
export const ToolHeaderButton = () => toolHeaderButtonExampleHtml; | ||
ToolHeaderButton.parameters = { | ||
docs: { | ||
description: { | ||
story: `The Tool Header button is based on the Button (Horizon) Transparent/LiteButton, but has over-styling of the shape, size and interaction states. It is intended to be used within the controls and patterns for the <b>BTP</b> area. Use the <code>.fd-button--tool-header</code> modifier class for this type of button. | ||
` | ||
} | ||
} | ||
}; | ||
|
||
export const NestedButton = () => nestedButtonExampleHtml; | ||
NestedButton.parameters = { | ||
docs: { | ||
description: { | ||
story: `The Nested button is also intended to be used within the controls and patterns for the <b>BTP</b> area. Use the <code>.fd-button--nested</code> modifier class with the <code>.fd-button</code> base class for this type of button. | ||
` | ||
} | ||
} | ||
}; |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.