Skip to content

Commit 56b86a2

Browse files
authored
[MIM-2210] Mim 2210 tweaks statistics (#3155)
* Remove extra padding for om statististikken in statistic description part MIM-2210 * Adjust border width to 1px for active Tag MIM-2210 * Make adjustments to margin instead MIM-2210 * Adjust margin-left and margin-right to minimize movement MIM-2210 * Bump @statisticsnorway/ssb-component-library from 2.4.8. to 2.4.9; outline for tags Use container instead of container-fluid instead MIM-2210
1 parent e73571d commit 56b86a2

File tree

4 files changed

+101
-28
lines changed

4 files changed

+101
-28
lines changed

package-lock.json

Lines changed: 98 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"@item-enonic-types/lib-thymeleaf": "~2.1.0",
7777
"@item-enonic-types/lib-time": "~1.0.4",
7878
"@reduxjs/toolkit": "~2.5.0",
79-
"@statisticsnorway/ssb-component-library": "~2.4.7",
79+
"@statisticsnorway/ssb-component-library": "~2.4.9",
8080
"@types/grecaptcha": "^3.0.9",
8181
"@types/ramda": "~0.30.2",
8282
"@types/react": "~18.3.12",

src/main/resources/assets/styles/_statisticDescription.scss

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.statistic-description {
22
margin-top: 4.5rem;
3+
34
.content-wrapper {
45
background-color: white;
56
padding: 1.5rem 2.5rem 4.5rem;
@@ -23,11 +24,6 @@
2324
gap: 0.75rem;
2425
margin-top: 1.5rem;
2526
margin-bottom: 3rem;
26-
27-
.ssb-tag.active {
28-
background: $ssb-green-4;
29-
color: $ssb-white;
30-
}
3127
}
3228

3329
.selected-category {

src/main/resources/site/parts/statisticDescription/statisticDescription.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function getOmStatistikken(req: XP.Request, page: Content<any>, aboutTheStatisti
4444
const props: AboutTheStatisticsProps = getAboutTheStatisticsProps(req, page, aboutTheStatisticsId)
4545

4646
return render('site/parts/statisticDescription/statisticDescription', props, req, {
47-
body: `<section id="om-statistikken" class="xp-part statistic-description container-fluid"></section>`,
47+
body: `<section id="om-statistikken" class="xp-part statistic-description container"></section>`,
4848
id: 'statistic-description',
4949
})
5050
}

0 commit comments

Comments
 (0)