Skip to content

Commit

Permalink
Merge pull request #878 from statisticsnorway/MIMIR-1906_card-double-…
Browse files Browse the repository at this point in the history
…after

Make sure pseudo element is only on anchor tag
  • Loading branch information
omsaggau authored Oct 20, 2023
2 parents 2c91eef + df2b9e6 commit b0ee78a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/bundle.css
Original file line number Diff line number Diff line change
Expand Up @@ -561,10 +561,10 @@ a {
margin-top: 12px;
padding: 4px;
}
.ssb-card .card-content .card-action:focus, .ssb-card .card-content .card-title:focus {
.ssb-card .card-content a.card-action:focus, .ssb-card .card-content a.card-title:focus {
outline: none;
}
.ssb-card .card-content .card-action::after, .ssb-card .card-content .card-title::after {
.ssb-card .card-content a.card-action::after, .ssb-card .card-content a.card-title::after {
content: "";
position: absolute;
inset: 0;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@statisticsnorway/ssb-component-library",
"version": "2.0.94",
"version": "2.0.95",
"description": "Component library for SSB (Statistics Norway)",
"main": "lib/bundle.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Card/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@
padding: 4px;
}

.card-action, .card-title {

a.card-action, a.card-title {
&:focus {
outline: none;
}
Expand Down

0 comments on commit b0ee78a

Please sign in to comment.