Skip to content

Commit f4820e6

Browse files
#RI-4529-4545 - update styles (#2119)
1 parent d80d6c9 commit f4820e6

File tree

2 files changed

+33
-8
lines changed

2 files changed

+33
-8
lines changed

redisinsight/ui/src/components/live-time-recommendations/components/recommendation/Recommendation.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,13 @@ const Recommendation = ({
179179

180180
const renderButtonContent = (redisStack: Maybe<boolean>, title: string, id: string) => (
181181
<EuiFlexGroup
182-
className={styles.accordionButton}
182+
className={styles.fullWidth}
183183
responsive={false}
184184
alignItems="center"
185185
justifyContent="spaceBetween"
186186
gutterSize="none"
187187
>
188-
<EuiFlexGroup alignItems="center" gutterSize="none">
188+
<EuiFlexGroup className={styles.fullWidth} alignItems="center" gutterSize="none">
189189
<EuiFlexItem grow={false}>
190190
{redisStack && (
191191
<EuiLink
@@ -210,7 +210,7 @@ const Recommendation = ({
210210
</EuiLink>
211211
)}
212212
</EuiFlexItem>
213-
<EuiFlexItem grow>
213+
<EuiFlexItem grow className="truncateText">
214214
{title}
215215
</EuiFlexItem>
216216
<EuiFlexItem grow={false}>

redisinsight/ui/src/components/live-time-recommendations/components/recommendation/styles.module.scss

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,54 @@
1616
.euiAccordion__button {
1717
padding: 4px 18px;
1818
border-bottom: 1px solid transparent;
19-
color: var(--htmlColor) !important;
20-
background-color: var(--recommendationBgColor) !important;
19+
color: var(--euiTextSubduedColor) !important;
20+
background-color: var(--recommendationsBgColor) !important;
2121
font-size: 14px;
22-
font-weight: 500;
22+
font-weight: 400;
2323

2424
transition: border-bottom-color ease 0.3s;
2525

2626
.euiIEFlexWrapFix {
2727
display: inline-block;
28-
width: 100%;
28+
width: calc(100% - 28px);
29+
}
30+
31+
.truncateText {
32+
display: block;
2933
}
3034
}
3135

3236
.euiAccordion.euiAccordion-isOpen {
3337
.euiAccordion__button {
3438
border-bottom-color: var(--controlsBorderColor);
39+
background-color: var(--recommendationBgColor) !important;
40+
color: var(--htmlColor) !important;
41+
font-weight: 500;
42+
}
43+
44+
.truncateText {
45+
display: flex;
46+
overflow: visible;
47+
white-space: normal;
3548
}
3649
}
3750

3851
.euiPanel {
3952
background: var(--recommendationsBgColor) !important;
4053
padding-bottom: 0 !important;
4154
}
55+
56+
.euiAccordion__iconWrapper {
57+
display: flex;
58+
justify-content: center;
59+
align-items: center;
60+
}
61+
62+
.euiAccordion__buttonReverse .euiAccordion__icon {
63+
width: 12px;
64+
height: 12px;
65+
vertical-align: middle;
66+
}
4267
}
4368
}
4469

@@ -104,7 +129,7 @@
104129
}
105130
}
106131

107-
.accordionButton {
132+
.fullWidth {
108133
width: 100%;
109134
}
110135

0 commit comments

Comments
 (0)