Skip to content

Commit 7aebe5f

Browse files
authored
fix(ObjectStatus): fix icon alignment in large & inverted mode (#6676)
Fixes #6668
1 parent 2073cd1 commit 7aebe5f

File tree

1 file changed

+48
-48
lines changed

1 file changed

+48
-48
lines changed

packages/main/src/components/ObjectStatus/ObjectStatus.module.css

+48-48
Original file line numberDiff line numberDiff line change
@@ -152,54 +152,6 @@
152152
}
153153
}
154154

155-
.large {
156-
font-size: 1.5rem;
157-
font-family: var(--sapFontLightFamily);
158-
159-
[ui5-icon],
160-
.icon {
161-
height: 1.5rem;
162-
width: 1.5rem;
163-
}
164-
165-
.icon {
166-
vertical-align: middle;
167-
}
168-
169-
.text {
170-
line-height: normal;
171-
vertical-align: middle;
172-
}
173-
174-
&.inverted {
175-
font-size: 1.25rem;
176-
font-family: var(--sapFontSemiboldDuplexFamily);
177-
padding: 0.125rem 0.25rem;
178-
179-
[ui5-icon],
180-
.icon {
181-
height: 1.25rem;
182-
width: 1.25rem;
183-
}
184-
185-
&[data-icon-only='true'] {
186-
padding: 0 0.25rem;
187-
min-width: 1.75rem;
188-
height: auto;
189-
}
190-
191-
[data-icon-only='true'] {
192-
height: 1.5rem;
193-
width: 1.5rem;
194-
195-
[ui5-icon] {
196-
height: 1.5rem;
197-
width: 1.5rem;
198-
}
199-
}
200-
}
201-
}
202-
203155
.active {
204156
cursor: pointer;
205157

@@ -267,6 +219,54 @@
267219
}
268220
}
269221

222+
.large {
223+
font-size: 1.5rem;
224+
font-family: var(--sapFontLightFamily);
225+
226+
[ui5-icon],
227+
.icon {
228+
height: 1.5rem;
229+
width: 1.5rem;
230+
}
231+
232+
.icon {
233+
vertical-align: middle;
234+
}
235+
236+
.text {
237+
line-height: normal;
238+
vertical-align: middle;
239+
}
240+
241+
&.inverted {
242+
font-size: 1.25rem;
243+
font-family: var(--sapFontSemiboldDuplexFamily);
244+
padding: 0.125rem 0.25rem;
245+
246+
[ui5-icon],
247+
.icon {
248+
height: 1.25rem;
249+
width: 1.25rem;
250+
}
251+
252+
&[data-icon-only='true'] {
253+
padding: 0 0.25rem;
254+
min-width: 1.75rem;
255+
height: auto;
256+
}
257+
258+
[data-icon-only='true'] {
259+
height: 1.5rem;
260+
width: 1.5rem;
261+
262+
[ui5-icon] {
263+
height: 1.5rem;
264+
width: 1.5rem;
265+
}
266+
}
267+
}
268+
}
269+
270270
/* Inverted Value State Styles */
271271
.objectStatus:is(.inverted.negative) {
272272
text-shadow: var(--sapContent_ContrastTextShadow);

0 commit comments

Comments
 (0)