-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(table): color context support (#1373)
* feat(table): color context support * docs(table): remove nested demo code * fix(table): apply context styles * fix(table): remove context-provider * fix(table): remove import for provider * fix(table): update hover colors * fix(table): lint * fix(table): update row and column colors * fix(table): use crayon white instead of surface-lightest * chore(table): add changeset * fix(table): add colorContextProvider reconfigure lightdom to match * docs(table): update changeset * fix(table): direct parent selector compromise
- Loading branch information
Showing
7 changed files
with
174 additions
and
40 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@rhds/elements": patch | ||
--- | ||
|
||
`<rh-table>`: added color palette and theme support |
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,49 @@ | ||
<rh-context-demo> | ||
<rh-table> | ||
<table> | ||
<caption> | ||
Concerts | ||
</caption> | ||
<colgroup> | ||
<col> | ||
<col> | ||
<col> | ||
</colgroup> | ||
<thead> | ||
<tr> | ||
<th scope="col" data-label="Date">Date</th> | ||
<th scope="col" data-label="Event">Event<rh-sort-button></rh-sort-button> | ||
</th> | ||
<th scope="col" data-label="Venue">Venue<rh-sort-button></rh-sort-button> | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td data-label="Date">12 February</td> | ||
<td data-label="Event">Waltz with Strauss</td> | ||
<td data-label="Venue">Main Hall</td> | ||
</tr> | ||
<tr> | ||
<td data-label="Date">24 March</td> | ||
<td data-label="Event">The Obelisks</td> | ||
<td data-label="Venue">West Wing</td> | ||
</tr> | ||
<tr> | ||
<td data-label="Date">14 April</td> | ||
<td data-label="Event">The What</td> | ||
<td data-label="Venue">Main Hall</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<small slot="summary">Dates and venues subject to change.</small> | ||
</rh-table> | ||
</rh-context-demo> | ||
|
||
<link rel="stylesheet" href="../rh-table-lightdom.css"> | ||
|
||
<script type="module"> | ||
import '@rhds/elements/rh-table/rh-table.js'; | ||
|
||
import '@rhds/elements/lib/elements/rh-context-demo/rh-context-demo.js'; | ||
</script> |
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.