Skip to content

Commit 5608141

Browse files
authored
fix(select): native inner element doesn't account Web Components width (#1407)
fix: auto-width inner native element #1406
1 parent 55ea024 commit 5608141

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

packages/db-ui-elements-stencil/src/components/db-select/db-select.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,9 @@
66

77
// Overwriting the referenced SVG icon as this is going to get inlined and the path would be relative to the pages URL instead of the CSS, which would break
88
--db-ic-expand-more-20: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAI9JREFUOE/tktENgCAMRB8buImOoJPrCLqJG2guEWOwIETil/1pSNuX61FH5XCVefzA945+4uEMbMAArBHNDTAedfWdYSkUsAWULaiHdcACKCeBGpgi0BDWh1vEPLSgUqE1vbIbTA2pTwmh6k/CnoCqX6F6yzNTmTcx52w8VDNJWI7C4kvPUVgE/YFFdpnNO7s0HhVghjmfAAAAAElFTkSuQmCC');
9+
10+
// our inner select element needs take the width of the "outer" Web Component tag
11+
select {
12+
width: 100%;
13+
}
914
}

packages/db-ui-elements-stencil/src/components/general.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
:host {
44
@extend html;
55
@extend body;
6+
7+
display: inline-block;
68
}
79

810
// Set the general link color inheritance

0 commit comments

Comments
 (0)