-
Notifications
You must be signed in to change notification settings - Fork 831
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [EuiBeacon] Add color prop * Add CL entry * Omit color field from HTMLAttributes * Remove color parameter from Emotion style function and return styles with individual color keys instead Co-authored-by: Constance Chen <constance.chen.3@gmail.com>
- Loading branch information
1 parent
3f7bd87
commit bf20f2a
Showing
6 changed files
with
124 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,73 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`EuiBeacon accepts size 1`] = ` | ||
exports[`EuiBeacon is rendered 1`] = ` | ||
<div | ||
aria-label="aria-label" | ||
class="euiBeacon testClass1 testClass2 emotion-euiBeacon" | ||
class="euiBeacon testClass1 testClass2 emotion-euiBeacon-success" | ||
data-test-subj="test subject string" | ||
style="height:14px;width:14px" | ||
style="height:12px;width:12px" | ||
/> | ||
`; | ||
|
||
exports[`EuiBeacon is rendered 1`] = ` | ||
exports[`EuiBeacon props color accent is rendered 1`] = ` | ||
<div | ||
aria-label="aria-label" | ||
class="euiBeacon testClass1 testClass2 emotion-euiBeacon-accent" | ||
data-test-subj="test subject string" | ||
style="height:12px;width:12px" | ||
/> | ||
`; | ||
|
||
exports[`EuiBeacon props color danger is rendered 1`] = ` | ||
<div | ||
aria-label="aria-label" | ||
class="euiBeacon testClass1 testClass2 emotion-euiBeacon-danger" | ||
data-test-subj="test subject string" | ||
style="height:12px;width:12px" | ||
/> | ||
`; | ||
|
||
exports[`EuiBeacon props color primary is rendered 1`] = ` | ||
<div | ||
aria-label="aria-label" | ||
class="euiBeacon testClass1 testClass2 emotion-euiBeacon-primary" | ||
data-test-subj="test subject string" | ||
style="height:12px;width:12px" | ||
/> | ||
`; | ||
|
||
exports[`EuiBeacon props color subdued is rendered 1`] = ` | ||
<div | ||
aria-label="aria-label" | ||
class="euiBeacon testClass1 testClass2 emotion-euiBeacon-subdued" | ||
data-test-subj="test subject string" | ||
style="height:12px;width:12px" | ||
/> | ||
`; | ||
|
||
exports[`EuiBeacon props color success is rendered 1`] = ` | ||
<div | ||
aria-label="aria-label" | ||
class="euiBeacon testClass1 testClass2 emotion-euiBeacon" | ||
class="euiBeacon testClass1 testClass2 emotion-euiBeacon-success" | ||
data-test-subj="test subject string" | ||
style="height:12px;width:12px" | ||
/> | ||
`; | ||
|
||
exports[`EuiBeacon props color warning is rendered 1`] = ` | ||
<div | ||
aria-label="aria-label" | ||
class="euiBeacon testClass1 testClass2 emotion-euiBeacon-warning" | ||
data-test-subj="test subject string" | ||
style="height:12px;width:12px" | ||
/> | ||
`; | ||
|
||
exports[`EuiBeacon props size accepts size 1`] = ` | ||
<div | ||
aria-label="aria-label" | ||
class="euiBeacon testClass1 testClass2 emotion-euiBeacon-success" | ||
data-test-subj="test subject string" | ||
style="height:14px;width:14px" | ||
/> | ||
`; |
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
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 @@ | ||
- Added `color` prop to `EuiBeacon` |