Skip to content

Commit

Permalink
Merge pull request #976 from StadGent/feature/SGD8-2687
Browse files Browse the repository at this point in the history
SGD8-2687: Remove spotlight figcaption visually
  • Loading branch information
SvenVdv authored Jan 18, 2024
2 parents 332db2a + d36930e commit ac269b3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/sass/11-base/mixins/_mixins.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@mixin visually-hidden {
position: absolute !important;
clip: rect(1px, 1px, 1px, 1px);
overflow: hidden;
height: 1px;
width: 1px;
word-wrap: normal;
}
7 changes: 7 additions & 0 deletions source/sass/31-molecules/spotlight/_spotlight.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//TODO: Figcaption on images in spotlight should be show (redesign needed)
.paragraph--type--spotlight,
.spotlight {
figcaption {
@include visually-hidden;
}
}

0 comments on commit ac269b3

Please sign in to comment.