Skip to content

Commit 455339f

Browse files
Allow use of card component with role="article"
1 parent 6dc6489 commit 455339f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

scss/_index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
// Components
3737
@use "components/accordion"; // details, summary
38-
@use "components/card"; // article
38+
@use "components/card"; // article, role="article"
3939
@use "components/dropdown"; // details.dropdown
4040
@use "components/group"; // role="group"
4141
@use "components/loading"; // aria-busy=true

scss/components/_card.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33

44
@if map.get($modules, "components/card") {
55
/**
6-
* Card (<article>)
6+
* Card (<article>, role="article")
77
*/
88

9-
#{$parent-selector} article {
9+
#{$parent-selector} article,
10+
#{$parent-selector} [role="article"] {
1011
margin-bottom: var(#{$css-var-prefix}block-spacing-vertical);
1112
padding: var(#{$css-var-prefix}block-spacing-vertical)
1213
var(#{$css-var-prefix}block-spacing-horizontal);

0 commit comments

Comments
 (0)