Skip to content

Commit e7219db

Browse files
authored
Merge pull request #1484 from undp/develop
Release 1.3.9
2 parents d537f71 + 269b06e commit e7219db

File tree

11 files changed

+42
-29
lines changed

11 files changed

+42
-29
lines changed

docs/css/base-minimal-no-grid.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/css/base-minimal.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/css/ckeditor5.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/js/all.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/js/swiper.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@undp/design-system",
3-
"version": "1.3.8",
3+
"version": "1.3.9",
44
"description": "UNDP Design System",
55
"homepage": "https://design.undp.org",
66
"main": "index.js",

stories/Components/UIcomponents/Cards/StatsCards/stats-cards.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ $colors: (
186186
}
187187
}
188188
}
189-
// Apply full-width style when max-width is set to "No"
189+
/* Apply full-width style when max-width is set to "No" */
190190
&.full-width {
191191
max-width: none;
192192
}

stories/Organism/StatsCardSlider/StatsCardSlider.jsx

+17-8
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,28 @@
1-
import React, { useEffect } from 'react';
2-
import './stats-card-slider.scss';
3-
import { swiper } from '../../assets/js/swiper';
4-
import { StatsCards } from '../../Components/UIcomponents/Cards/StatsCards/StatsCards';
1+
import React, { useEffect } from "react";
2+
import "./stats-card-slider.scss";
3+
import "../../../stories/assets/scss/_swiper.scss";
4+
import { swiper } from "../../assets/js/swiper";
5+
import { StatsCards } from "../../Components/UIcomponents/Cards/StatsCards/StatsCards";
56

67
// RTL Fix for Storybook.
78
let rtl = document.dir || undefined;
8-
if (window.location.href.indexOf('direction=rtl') > -1) {
9-
rtl = 'rtl';
9+
if (window.location.href.indexOf("direction=rtl") > -1) {
10+
rtl = "rtl";
1011
}
1112
export function Statscardslider({ data, ...args }) {
1213
useEffect(() => {
13-
swiper('.stats-slider');
14+
swiper(".stats-slider");
1415
}, []);
16+
1517
return (
16-
<div className="stats-slider" data-swiper-slides-view-mobile="1" data-swiper-slides-view-tablet="2" data-swiper-slides-view-desktop="4" data-swiper-offset="50" dir={rtl}>
18+
<div
19+
className="stats-slider"
20+
data-swiper-slides-view-mobile="1"
21+
data-swiper-slides-view-tablet="2"
22+
data-swiper-slides-view-desktop="4"
23+
data-swiper-offset="50"
24+
dir={rtl}
25+
>
1726
<div className="swiper-scrollbar" />
1827
<div className="swiper-wrapper">
1928
{data.map((item, index) => (
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
@import '../../assets/scss/breakpoints';
2-
@import '../../assets/scss/variables';
1+
@import "../../assets/scss/breakpoints";
2+
@import "../../assets/scss/variables";
33

44
$backgroundcolors: (
5-
'yellow': $color-yellow,
6-
'red': $color-red,
7-
'green': $color-green,
8-
'blue': $color-azure,
9-
'gray': $color-gray-100
5+
"yellow": $color-yellow,
6+
"red": $color-red,
7+
"green": $color-green,
8+
"blue": $color-azure,
9+
"gray": $color-gray-100,
1010
);
1111

1212
.stats-slider {
@@ -16,8 +16,7 @@ $backgroundcolors: (
1616
&:hover {
1717
//background-color: $color-yellow;
1818

19-
@each $name,
20-
$color in $backgroundcolors {
19+
@each $name, $color in $backgroundcolors {
2120
&.#{$name} {
2221
background-color: #{$color};
2322
}
@@ -32,7 +31,7 @@ $backgroundcolors: (
3231
}
3332
}
3433

35-
[dir='rtl'] {
34+
[dir="rtl"] {
3635
.stats-slider {
3736
&.swiper-initialized {
3837
.swiper-scrollbar {
@@ -42,4 +41,4 @@ $backgroundcolors: (
4241
}
4342
}
4443
}
45-
}
44+
}

stories/assets/scss/_langs.scss

+6-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,12 @@
181181
}
182182

183183
body,
184-
div {
184+
div,
185+
p,
186+
ul li,
187+
ol li,
188+
dl,
189+
input {
185190
font-weight: 350;
186191
}
187192
}

0 commit comments

Comments
 (0)