Skip to content

Commit 53950b6

Browse files
committed
Updated code for fixes
1 parent c92ebde commit 53950b6

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

components/TaggedValue/TaggedValue.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const TaggedValue = ({title,subText,style,count}) => {
1515
return (
1616
<div className={taggedValueClass}>
1717
<div className="tagged-value-bg">{title}</div>
18-
<span>{subText}</span>
18+
<span className="subText">{subText}</span>
1919
</div>
2020
)
2121
}

components/TaggedValue/TaggedValue.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ $accent: #59A7FF;
1010
height: 20px;
1111
.tagged-value-bg {
1212
display: inline;
13-
padding: 1px 4px 1px 4px;
13+
padding: 4px 4px 1px 4px;
1414
min-width: 15px;
1515
max-height: 15px;
1616
background: $accent;
@@ -23,7 +23,7 @@ $accent: #59A7FF;
2323
color: $gray;
2424
padding: 1px 7px 2px 7px;
2525
}
26-
span {
26+
.subText {
2727
font-family: "Roboto", Arial, Helvetica, sans-serif;
2828
font-size: 13px;
2929
line-height: 15px;

components/TaggedValue/TaggedValueExamples.scss

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
1+
$gray: #47474F;
2+
$blue : #59A7FF;
3+
$purple: #B47DD6;
4+
15
.sample1 {
26
.tagged-value-bg {
3-
color: blue;
7+
background-color: $purple;
8+
color: white;
49
}
5-
span {
10+
.subText {
611
color: white;
712
}
813
}
914

1015
.sample2 {
1116
.tagged-value-bg {
12-
color: red;
17+
color: $gray;
1318
}
14-
span{
19+
.subText{
1520
color: lightblue;
1621
}
1722
}

0 commit comments

Comments
 (0)