Skip to content

Commit

Permalink
fix(card-pictogram): now copy is also visible on focus (#4861)
Browse files Browse the repository at this point in the history
### Related tickets

Web component: Card component Pictogram - Placement bottom - On hover, Keyboard user cannot access this textual content. #4843

### Description

Now the copy is also visible on focus
  • Loading branch information
guilhermelMoraes authored Jan 14, 2021
1 parent f82efba commit 3c7ddc6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/web-components/src/components/card/card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@
margin-bottom: 0;
}
}

:host(#{$dds-prefix}-card)[pictogram-placement='bottom']:focus {
::slotted(svg[slot='pictogram']) {
display: none;
}

.#{$prefix}--card__copy {
display: flex;
margin-bottom: 0;
}
}

:host(#{$dds-prefix}-card) {
.#{$prefix}--card__pictogram {
display: flex;
Expand Down

0 comments on commit 3c7ddc6

Please sign in to comment.