Skip to content

Commit

Permalink
fix: #1569 extend breadcrumb support for an ordered list (#1648)
Browse files Browse the repository at this point in the history
  • Loading branch information
amirsinaa committed Mar 1, 2023
1 parent 0f94f76 commit ca82b9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/components/styled/breadcrumbs.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.breadcrumbs {
@apply py-2;
& > ul {
& > ul,& > ol {
& > li {
& > a {
&:focus {
Expand All @@ -22,6 +22,7 @@
}
}

[dir="rtl"] .breadcrumbs > ul > li + *:before {
[dir="rtl"] .breadcrumbs > ul > li + *:before,
[dir="rtl"] .breadcrumbs > ol > li + *:before {
--tw-rotate: -135deg;
}
2 changes: 1 addition & 1 deletion src/components/unstyled/breadcrumbs.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.breadcrumbs {
@apply max-w-full overflow-x-auto;
& > ul {
& > ul,& > ol {
@apply flex items-center whitespace-nowrap;
min-height: min-content;
& > li {
Expand Down

0 comments on commit ca82b9b

Please sign in to comment.