Skip to content

Commit

Permalink
MIM-2177:Added styling if Tag has class active (#1458)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssb-cgn authored Jan 30, 2025
1 parent 46fa1ee commit 5478604
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/bundle.css
Original file line number Diff line number Diff line change
Expand Up @@ -2633,7 +2633,7 @@ a {
.ssb-tag:hover, .ssb-tag:active {
cursor: pointer;
}
.ssb-tag:hover, .ssb-tag:focus {
.ssb-tag:hover, .ssb-tag:focus, .ssb-tag.active {
background: #00824d;
color: #fff;
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.4.5",
"version": "2.4.6",
"description": "Component library for SSB (Statistics Norway)",
"main": "lib/bundle.js",
"scripts": {
Expand Down
5 changes: 3 additions & 2 deletions src/components/Tag/_tag.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
}

&:hover,
&:focus {
&:focus,
&.active {
background: $ssb-green-4;
color: $ssb-white;
}
Expand All @@ -45,4 +46,4 @@
font-size: 18px;
margin-right: 5px;
}
}
}

0 comments on commit 5478604

Please sign in to comment.