-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: warningbutton and warningdropdownbutton (#961)
This introduces new button styles to handle warning messaging. Closes D2IQ-96852
- Loading branch information
1 parent
5c941ef
commit 5a53190
Showing
10 changed files
with
295 additions
and
10 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
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,16 @@ | ||
import * as React from "react"; | ||
import { | ||
default as ButtonBase, | ||
ButtonProps, | ||
ButtonAppearances | ||
} from "./ButtonBase"; | ||
|
||
const WarningButton = (props: ButtonProps) => ( | ||
<ButtonBase | ||
appearance={ButtonAppearances.Warning} | ||
data-cy={props["data-cy"] ?? "warningButton"} | ||
{...props} | ||
/> | ||
); | ||
|
||
export default WarningButton; |
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,14 @@ | ||
import * as React from "react"; | ||
import WarningButton from "./WarningButton"; | ||
import { ButtonProps } from "./ButtonBase"; | ||
import { SystemIcons } from "../../icons/dist/system-icons-enum"; | ||
|
||
const WarningDropdownButton = (props: ButtonProps) => ( | ||
<WarningButton | ||
iconEnd={SystemIcons.TriangleDown} | ||
data-cy={props["data-cy"] ?? "warningDropdownButton"} | ||
{...props} | ||
/> | ||
); | ||
|
||
export default WarningDropdownButton; |
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
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.