-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(pagination): Colors, right to left demo, and logical properties (#…
…2116) * fix(pagination): make bg of open variants transparent * fix(pagination): fallback colors for public and private variables * fix(pagination): use logical properties * fix(pagination): fix RTL demo layout * fix(pagination): wrap all pagination demos with `<rh-surface>` * fix(pagination): remove fallbacks to RHDS color tokens * chore(pagination): add changeset * docs(pagination): add docs about colors + surface * chore(pagination): downgrade changeset to patch Co-authored-by: Benny Powers - עם ישראל חי! <[email protected]> * docs(pagination): update changeset description Co-authored-by: Benny Powers - עם ישראל חי! <[email protected]> * docs(pagination): reword `rh-surface` requirement terminology, add alert note * docs(pagination): update 30-code.md --------- Co-authored-by: Benny Powers - עם ישראל חי! <[email protected]>
- Loading branch information
1 parent
6271efd
commit 34b8726
Showing
15 changed files
with
145 additions
and
119 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-pagination>`: improves layouts for non-left-to-right languages |
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
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,15 +1,18 @@ | ||
<rh-pagination variant="open"> | ||
<ol> | ||
<li><a href="#">1</a></li> | ||
<li><a href="#2">2</a></li> | ||
<li><a href="#3">3</a></li> | ||
<li><a href="#4">4</a></li> | ||
<li><a href="#5">5</a></li> | ||
</ol> | ||
</rh-pagination> | ||
<rh-surface color-palette="lightest"> | ||
<rh-pagination variant="open"> | ||
<ol> | ||
<li><a href="#">1</a></li> | ||
<li><a href="#2">2</a></li> | ||
<li><a href="#3">3</a></li> | ||
<li><a href="#4">4</a></li> | ||
<li><a href="#5">5</a></li> | ||
</ol> | ||
</rh-pagination> | ||
</rh-surface> | ||
|
||
<link rel="stylesheet" href="../rh-pagination-lightdom.css"> | ||
|
||
<script type="module"> | ||
import '@rhds/elements/rh-surface/rh-surface.js'; | ||
import '@rhds/elements/rh-pagination/rh-pagination.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
<rh-pagination> | ||
<ol> | ||
<li><a href="#">1</a></li> | ||
<li><a href="#2">2</a></li> | ||
<li><a href="#3">3</a></li> | ||
<li><a href="#4">4</a></li> | ||
<li><a href="#5">5</a></li> | ||
</ol> | ||
</rh-pagination> | ||
<rh-surface color-palette="lightest"> | ||
<rh-pagination> | ||
<ol> | ||
<li><a href="#">1</a></li> | ||
<li><a href="#2">2</a></li> | ||
<li><a href="#3">3</a></li> | ||
<li><a href="#4">4</a></li> | ||
<li><a href="#5">5</a></li> | ||
</ol> | ||
</rh-pagination> | ||
</rh-surface> | ||
|
||
<link rel="stylesheet" href="../rh-pagination-lightdom.css"> | ||
|
||
<script type="module"> | ||
import '@rhds/elements/rh-surface/rh-surface.js'; | ||
import '@rhds/elements/rh-pagination/rh-pagination.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
<rh-pagination size="sm"> | ||
<ol> | ||
<li><a href="#">1</a></li> | ||
<li><a href="#2">2</a></li> | ||
<li><a href="#3">3</a></li> | ||
<li><a href="#4">4</a></li> | ||
<li><a href="#5">5</a></li> | ||
</ol> | ||
</rh-pagination> | ||
<rh-surface color-palette="lightest"> | ||
<rh-pagination size="sm"> | ||
<ol> | ||
<li><a href="#">1</a></li> | ||
<li><a href="#2">2</a></li> | ||
<li><a href="#3">3</a></li> | ||
<li><a href="#4">4</a></li> | ||
<li><a href="#5">5</a></li> | ||
</ol> | ||
</rh-pagination> | ||
</rh-surface> | ||
|
||
<link rel="stylesheet" href="../rh-pagination-lightdom.css"> | ||
|
||
<script type="module"> | ||
import '@rhds/elements/rh-surface/rh-surface.js'; | ||
import '@rhds/elements/rh-pagination/rh-pagination.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
### Displaying correct pagination colors | ||
|
||
In order for pagination to be styled correctly, each `<rh-pagination>` must be wrapped in a container element which supports the `color-palette` attribute, such as the [`<rh-surface>` element](/elements/surface). | ||
|
||
<rh-alert state="alternate"> | ||
<h4 slot="header">Developer note</h4> | ||
|
||
The requirement to wrap `<rh-pagination>`s with color palette containers could be relaxed in the future with advancements in browser themeing APIs. | ||
|
||
</rh-alert> |
Oops, something went wrong.