Skip to content

Commit f7f07d2

Browse files
authored
fix: fix styles for hidden attribute (#464)
1 parent 097ddad commit f7f07d2

26 files changed

+55
-52
lines changed

packages/main/src/themes/Button.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
:host(ui5-button) {
1+
:host(ui5-button:not([hidden])) {
22
display: inline-block;
33
}
44

5-
ui5-button {
5+
ui5-button:not([hidden]) {
66
display: inline-block;
77
}
88

packages/main/src/themes/Card.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
:host(ui5-card) {
1+
:host(ui5-card:not([hidden])) {
22
display: inline-block;
33
width: 100%;
44
}
55

6-
ui5-card {
6+
ui5-card:not([hidden]) {
77
display: inline-block;
88
width: 100%;
99
}

packages/main/src/themes/CheckBox.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
:host(ui5-checkbox) {
1+
:host(ui5-checkbox:not([hidden])) {
22
display: inline-block;
33
overflow: hidden;
44
max-width: 100%;
55
}
66

77
/* ducplicated for IE */
8-
ui5-checkbox {
8+
ui5-checkbox:not([hidden]) {
99
display: inline-block;
1010
overflow: hidden;
1111
max-width: 100%;

packages/main/src/themes/CustomListItem.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
outline: none;
33
}
44

5-
:host(ui5-li-custom) {
5+
:host(ui5-li-custom:not([hidden])) {
66
display: block;
77
}
88

9-
ui5-li-custom {
9+
ui5-li-custom:not([hidden]) {
1010
display: block;
1111
}
1212

packages/main/src/themes/DatePicker.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
:host(ui5-datepicker) {
1+
:host(ui5-datepicker:not([hidden])) {
22
display: inline-block;
33
width: 100%;
44
}
55

6-
ui5-datepicker {
6+
ui5-datepicker:not([hidden]) {
77
display: inline-block;
88
width: 100%;
99
}

packages/main/src/themes/Icon.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
:host(ui5-icon) {
1+
:host(ui5-icon:not([hidden])) {
22
display: inline-block;
33
outline: none;
44
color: var(--sapUiContentNonInteractiveIconColor);
@@ -10,7 +10,7 @@
1010
height: 100%;
1111
}
1212

13-
ui5-icon {
13+
ui5-icon:not([hidden]) {
1414
display: inline-block;
1515
outline: none;
1616
color: var(--sapUiContentNonInteractiveIconColor);

packages/main/src/themes/Input.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
:host(ui5-input) {
1+
:host(ui5-input:not([hidden])) {
22
display: inline-block;
33
width: 100%;
44
}
55

6-
ui5-input {
6+
ui5-input:not([hidden]) {
77
display: inline-block;
88
width: 100%;
99
}

packages/main/src/themes/Label.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
:host(ui5-label) {
1+
:host(ui5-label:not([hidden])) {
22
display: inline-block;
33
max-width: 100%;
44
cursor: text;
@@ -8,7 +8,7 @@
88
display: flex;
99
}
1010

11-
ui5-label {
11+
ui5-label:not([hidden]) {
1212
display: inline-block;
1313
max-width: 100%;
1414
overflow: hidden;

packages/main/src/themes/Link.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
:host(ui5-link) {
1+
:host(ui5-link:not([hidden])) {
22
display: inline-block;
33
max-width: 100%;
44
}
55

6-
:host(ui5-link) span[data-sap-ui-wc-root] {
6+
:host(ui5-link:not([hidden])) span[data-sap-ui-wc-root] {
77
display: flex;
88
}
99

packages/main/src/themes/List.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
:host(ui5-list) {
1+
:host(ui5-list:not([hidden])) {
22
display: block;
33
max-width: 100%;
44
}
55

6-
ui5-list {
6+
ui5-list:not([hidden]) {
77
display: block;
88
max-width: 100%;
99
}

packages/main/src/themes/ListItemBase.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11

2-
:host(ui5-li) {
2+
:host(ui5-li:not([hidden])) {
33
display: block;
44
}
55

66
:host(ui5-li) .sap-phone .sapMLIB {
77
outline: none;
88
}
99

10-
ui5-li {
10+
ui5-li:not([hidden]) {
1111
display: block;
1212
}
1313

packages/main/src/themes/MessageStrip.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
:host(ui5-messagestrip) {
1+
:host(ui5-messagestrip:not([hidden])) {
22
display: inline-block;
33
width: 100%;
44
}
55

6-
ui5-messagestrip {
6+
ui5-messagestrip:not([hidden]) {
77
display: inline-block;
88
width: 100%;
99
}

packages/main/src/themes/MultiComboBox.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
:host(ui5-multi-combobox) {
1+
:host(ui5-multi-combobox:not([hidden])) {
22
display: inline-block;
33
width: 100%;
44

55
--_ui5_popover_content_padding: 0;
66
}
77

8-
ui5-multi-combobox {
8+
ui5-multi-combobox:not([hidden]) {
99
display: inline-block;
1010
width: 100%;
1111
}

packages/main/src/themes/Panel.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
:host(ui5-panel) {
1+
:host(ui5-panel:not([hidden])) {
22
display: block;
33
}
44

5-
ui5-panel {
5+
ui5-panel:not([hidden]) {
66
display: block;
77
}
88

packages/main/src/themes/RadioButton.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
:host(ui5-radiobutton) {
1+
:host(ui5-radiobutton:not([hidden])) {
22
max-width: 100%;
33
text-overflow: ellipsis;
44
overflow: hidden;
55
display: inline-block;
66
}
77

8-
ui5-radiobutton {
8+
ui5-radiobutton:not([hidden]) {
99
max-width: 100%;
1010
text-overflow: ellipsis;
1111
overflow: hidden;

packages/main/src/themes/Select.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
:host(ui5-select) {
1+
:host(ui5-select:not([hidden])) {
22
display: inline-block;
33
width: 100%;
44
}
55

6-
ui5-select {
6+
ui5-select:not([hidden]) {
77
display: inline-block;
88
width: 100%;
99
}

packages/main/src/themes/ShellBar.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
:host(ui5-shellbar) {
1+
:host(ui5-shellbar:not([hidden])) {
22
display: inline-block;
33
width: 100%;
44
}
55

6-
ui5-shellbar {
6+
ui5-shellbar:not([hidden]) {
77
display: inline-block;
88
width: 100%;
99
}

packages/main/src/themes/Switch.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

22

3-
:host(ui5-switch) {
3+
:host(ui5-switch:not([hidden])) {
44
display: inline-block;
55
}
66

7-
ui5-switch {
7+
ui5-switch:not([hidden]) {
88
display: inline-block;
99
}
1010

packages/main/src/themes/TabContainer.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/* ============================= */
22
/* Global Base parameters */
33
/* ============================= */
4-
:host(ui5-tabcontainer) {
4+
:host(ui5-tabcontainer:not([hidden])) {
55
display: inline-block;
66
width: 100%;
77
}
88

9-
ui5-tabcontainer {
9+
ui5-tabcontainer:not([hidden]) {
1010
width: 100%;
1111
}
1212

packages/main/src/themes/Table.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
:host(ui5-table) {
1+
:host(ui5-table:not([hidden])) {
22
display: inline-block;
33
width: 100%;
44
}
55

6-
ui5-table {
6+
ui5-table:not([hidden]) {
77
display: inline-block;
88
width: 100%;
99
}

packages/main/src/themes/TableRow.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
:host(ui5-table-row) {
1+
:host(ui5-table-row:not([hidden])) {
22
display: inline-block;
33
width: 100%;
44
}
55

6-
ui5-table-row {
6+
ui5-table-row:not([hidden]) {
77
display: inline-block;
88
width: 100%;
99
}

packages/main/src/themes/TextArea.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
:host(ui5-textarea) {
1+
:host(ui5-textarea:not([hidden])) {
22
display: inline-block;
33
}
44

5-
ui5-textarea {
5+
ui5-textarea:not([hidden]) {
66
display: inline-block;
77
}
88

packages/main/src/themes/Timeline.css

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
ui5-timeline,
2-
:host(ui5-timeline) {
1+
:host(ui5-timeline:not([hidden])) {
2+
display: block;
3+
}
4+
5+
ui5-timeline:not([hidden]) {
36
display: block;
47
}
58

packages/main/src/themes/TimelineItem.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
:host(ui5-timeline-item) {
1+
:host(ui5-timeline-item:not([hidden])) {
22
display: block;
33
}
44

5-
ui5-timeline-item {
5+
ui5-timeline-item:not([hidden]) {
66
display: block;
77
}
88

packages/main/src/themes/Title.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
:host(ui5-title) {
1+
:host(ui5-title:not([hidden])) {
22
display: block;
33
max-width: 100%;
44
color: var(--sapUiGroupTitleTextColor);
55
}
66

7-
ui5-title {
7+
ui5-title:not([hidden]) {
88
display: block;
99
overflow: hidden;
1010
color: var(--sapUiGroupTitleTextColor);

packages/main/src/themes/ToggleButton.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
:host(ui5-togglebutton) {
1+
:host(ui5-togglebutton:not([hidden])) {
22
display: inline-block;
33
}
44

5-
ui5-togglebutton {
5+
ui5-togglebutton:not([hidden]) {
66
display: inline-block;
77
}
88

0 commit comments

Comments
 (0)