-
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: new outline button components (#1068)
Introduces a new OutlineButton component, along with an OutlineDropdownButton. Closes D2IQ-99363
- Loading branch information
1 parent
85e7be2
commit 8546cc3
Showing
10 changed files
with
369 additions
and
4 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 OutlineButton = (props: ButtonProps) => ( | ||
<ButtonBase | ||
appearance={ButtonAppearances.Outline} | ||
data-cy={props["data-cy"] ?? "outlineButton"} | ||
{...props} | ||
/> | ||
); | ||
|
||
export default OutlineButton; |
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 OutlineButton from "./OutlineButton"; | ||
import { ButtonProps } from "./ButtonBase"; | ||
import { SystemIcons } from "../../icons/dist/system-icons-enum"; | ||
|
||
const OutlineDropdownButton = (props: ButtonProps) => ( | ||
<OutlineButton | ||
iconEnd={SystemIcons.TriangleDown} | ||
data-cy={props["data-cy"] ?? "outlineDropdownButton"} | ||
{...props} | ||
/> | ||
); | ||
|
||
export default OutlineDropdownButton; |
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.