forked from carbon-design-system/carbon-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add StatusIndicator table component (carbon-design-system#2377)
* feat: add StatusIndicator table component * feat: add other attention yaml entries * feat: add status and statusExtended paletts * fix: palette name * feat: add glyph table * chore: update theme * fix: color palette switcher border * refactor: clean up styles and components * fix: use object to prevent blurry svgs on safari/ff * fix: remove SVG filter junk * feat: twoColumn color palette prop * fix: dark caution ghost paths * fix: palette data, caret size, overview paragraph spacing * Update status-indicators.yaml * fix: token names, image assets * fix: add number badge image * fix: add image url * Update status-indicators.yaml * fix: indicator data, checkmark filled, image cols * Update status-indicators.yaml * fix: glyph swap Co-authored-by: jeanservaas <43144260+jeanservaas@users.noreply.github.com>
- Loading branch information
1 parent
9c29675
commit b4fdfb7
Showing
104 changed files
with
1,947 additions
and
74 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
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
94 changes: 94 additions & 0 deletions
94
src/components/StatusIndicatorTable/StatusIndicator.module.scss
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,94 @@ | ||
.iconWrapper { | ||
display: flex; | ||
height: 100%; | ||
} | ||
|
||
.iconGroup { | ||
padding: 1rem; | ||
display: flex; | ||
width: 50%; | ||
} | ||
|
||
.iconGroup.isDark { | ||
background-color: $carbon--gray-100; | ||
position: relative; | ||
} | ||
|
||
// Covers the top border of the dark cells with appropriate border color | ||
.iconGroup.isDark::before { | ||
content: ''; | ||
position: absolute; | ||
left: 0px; | ||
top: -1px; | ||
width: 100%; | ||
height: 1px; | ||
display: block; | ||
background-color: #393939; | ||
} | ||
|
||
.icon { | ||
background: transparent !important; | ||
min-width: 20px; | ||
height: 20px; | ||
} | ||
|
||
.icon.glyph { | ||
min-width: 16px; | ||
height: 16px; | ||
} | ||
|
||
.icon:first-child { | ||
margin-right: 8px; | ||
} | ||
|
||
.table { | ||
background: white; | ||
height: 1px; | ||
overflow: hidden; | ||
width: 100%; | ||
} | ||
|
||
.table .cell, | ||
.table .headerCell { | ||
padding: 1rem; | ||
vertical-align: top; | ||
color: $text-01; | ||
} | ||
|
||
.table :is(.cell) { | ||
color: var(--cds-text-01); | ||
border-collapse: collapse; | ||
} | ||
|
||
.table .cell:first-child { | ||
padding: 0; | ||
padding-left: 0 !important; | ||
height: 100%; | ||
} | ||
|
||
.descriptionCell { | ||
min-width: 240px; | ||
} | ||
|
||
.statusIndicatorRow { | ||
height: 100%; | ||
border-bottom: 1px solid #dcdcdc; | ||
} | ||
|
||
.statusIndicatorRow:last-child { | ||
border-bottom: none; | ||
} | ||
|
||
@media (max-width: 600px) { | ||
.statusIndicatorTableWrapper { | ||
margin-right: -1rem; | ||
margin-left: -1rem; | ||
overflow: scroll; | ||
} | ||
.iconGroup { | ||
width: 100%; | ||
} | ||
.iconGroup.isDark { | ||
display: none; | ||
} | ||
} |
Oops, something went wrong.