mirror of
https://github.com/picocss/pico.git
synced 2025-04-21 09:06:14 -04:00
Merge pull request #15 from lukas-kasticky:dev
Allow use of card component with `role="article"`
This commit is contained in:
commit
a8bbc686a3
2 changed files with 4 additions and 3 deletions
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
// Components
|
// Components
|
||||||
@use "components/accordion"; // details, summary
|
@use "components/accordion"; // details, summary
|
||||||
@use "components/card"; // article
|
@use "components/card"; // article, role="article"
|
||||||
@use "components/dropdown"; // details.dropdown
|
@use "components/dropdown"; // details.dropdown
|
||||||
@use "components/group"; // role="group"
|
@use "components/group"; // role="group"
|
||||||
@use "components/loading"; // aria-busy=true
|
@use "components/loading"; // aria-busy=true
|
||||||
|
|
|
@ -3,10 +3,11 @@
|
||||||
|
|
||||||
@if map.get($modules, "components/card") {
|
@if map.get($modules, "components/card") {
|
||||||
/**
|
/**
|
||||||
* Card (<article>)
|
* Card (<article>, role="article")
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#{$parent-selector} article {
|
#{$parent-selector} article,
|
||||||
|
#{$parent-selector} [role="article"] {
|
||||||
margin-bottom: var(#{$css-var-prefix}block-spacing-vertical);
|
margin-bottom: var(#{$css-var-prefix}block-spacing-vertical);
|
||||||
padding: var(#{$css-var-prefix}block-spacing-vertical)
|
padding: var(#{$css-var-prefix}block-spacing-vertical)
|
||||||
var(#{$css-var-prefix}block-spacing-horizontal);
|
var(#{$css-var-prefix}block-spacing-horizontal);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue