From 5478604b1dee78c238497fc09da4260be1799672 Mon Sep 17 00:00:00 2001 From: Carina Date: Thu, 30 Jan 2025 10:25:06 +0100 Subject: [PATCH] MIM-2177:Added styling if Tag has class active (#1458) --- lib/bundle.css | 2 +- package-lock.json | 4 ++-- package.json | 2 +- src/components/Tag/_tag.scss | 5 +++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/bundle.css b/lib/bundle.css index a5520a9b..e091c0a1 100644 --- a/lib/bundle.css +++ b/lib/bundle.css @@ -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; } diff --git a/package-lock.json b/package-lock.json index 39619ee0..1f163156 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@statisticsnorway/ssb-component-library", - "version": "2.4.5", + "version": "2.4.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@statisticsnorway/ssb-component-library", - "version": "2.4.5", + "version": "2.4.6", "license": "Apache-2.0", "dependencies": { "prismjs": "~1.29.0", diff --git a/package.json b/package.json index d8e5e515..2415daad 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/components/Tag/_tag.scss b/src/components/Tag/_tag.scss index c8004afc..7fe1fa0c 100644 --- a/src/components/Tag/_tag.scss +++ b/src/components/Tag/_tag.scss @@ -25,7 +25,8 @@ } &:hover, - &:focus { + &:focus, + &.active { background: $ssb-green-4; color: $ssb-white; } @@ -45,4 +46,4 @@ font-size: 18px; margin-right: 5px; } -} \ No newline at end of file +}