Skip to content

Commit a8bbc68

Browse files
authored
Merge pull request #15 from lukas-kasticky:dev
Allow use of card component with `role="article"`
2 parents fdf5c83 + 455339f commit a8bbc68

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
@@ -37,7 +37,7 @@
3737

3838
// Components
3939
@use "components/accordion"; // details, summary
40-
@use "components/card"; // article
40+
@use "components/card"; // article, role="article"
4141
@use "components/dropdown"; // details.dropdown
4242
@use "components/group"; // role="group"
4343
@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)