Skip to content

Commit bce2fb8

Browse files
naaa760heloiselui
andauthored
fix(ai-skeleton): add display properties to fix flex container rendering (#20756)
* fix(ai-skeleton): add display properties to fix flex container rendering * fix(ai-skeleton): add display properties for flex container compatibility * fix(ai-skeleton): add display properties for flex container compatibility --------- Co-authored-by: Heloise Lui <71858203+heloiselui@users.noreply.github.com>
1 parent ba9072c commit bce2fb8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packages/web-components/src/components/ai-skeleton/ai-skeleton.scss

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@
55
// LICENSE file in the root directory of this source tree.
66
//
77

8+
@use '@carbon/styles/scss/config' as *;
89
@use '../skeleton-text/skeleton-text';
910
@use '../skeleton-icon/skeleton-icon';
1011
@use '../skeleton-placeholder/skeleton-placeholder';
12+
13+
:host(#{$prefix}-ai-skeleton-text) {
14+
display: block;
15+
inline-size: 100%;
16+
}
17+
18+
:host(#{$prefix}-ai-skeleton-placeholder) {
19+
display: block;
20+
}
21+
22+
:host(#{$prefix}-ai-skeleton-icon) {
23+
display: inline-block;
24+
}

0 commit comments

Comments
 (0)