Skip to content

Commit

Permalink
fix(ui5-popover): correct opacity (#9839)
Browse files Browse the repository at this point in the history
The background of the modal popover was black which made the context page not visible.
So opacity was added to grey out the background

Fixes: #9823
  • Loading branch information
kskondov authored Sep 16, 2024
1 parent 7d88950 commit 371c547
Show file tree
Hide file tree
Showing 16 changed files with 27 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/main/src/themes/Dialog.css
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@

:host::backdrop {
background-color: var(--_ui5_popup_block_layer_background);
opacity: var(--_ui5_dialog_block_layer_opacity);
opacity: var(--_ui5_popup_block_layer_opacity);
}

.ui5-block-layer {
Expand Down
1 change: 1 addition & 0 deletions packages/main/src/themes/Popover.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@

:host([modal])::backdrop {
background-color: var(--_ui5_popup_block_layer_background);
opacity: var(--_ui5_popup_block_layer_opacity);
}

:host([modal]) .ui5-block-layer {
Expand Down
1 change: 0 additions & 1 deletion packages/main/src/themes/base/Dialog-parameters.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@
--_ui5_dialog_header_success_state_icon_color: var(--sapPositiveElementColor);
--_ui5_dialog_header_warning_state_icon_color: var(--sapCriticalElementColor);
--_ui5_dialog_header_state_line_height: 0.0625rem;
--_ui5_dialog_block_layer_opacity: 0.2;
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
:root {
--_ui5_popup_block_layer_background: var(--sapBlockLayer_Background);
--_ui5_popup_block_layer_opacity: 0.2;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@

:root {
--_ui5_dialog_header_state_line_height: 0.125rem;
--_ui5_dialog_block_layer_opacity: 0.3;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@import "../base/PopupBlockLayer-parameters.css";

:root {
--_ui5_popup_block_layer_opacity: 0.3;
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
@import "./MessageStrip-parameters.css";
@import "./Panel-parameters.css";
@import "../base/Popover-parameters.css";
@import "./PopupBlockLayer-parameters.css";
@import "./PopupsCommon-parameters.css";
@import "../base/PopupBlockLayer-parameters.css";
@import "./ProgressIndicator-parameters.css";
@import "./RadioButton-parameters.css";
@import "../base/RatingIndicator-parameters.css";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@

:root {
--_ui5_dialog_header_state_line_height: 0.125rem;
--_ui5_dialog_block_layer_opacity: 0.3;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@import "../base/PopupBlockLayer-parameters.css";

:root {
--_ui5_popup_block_layer_opacity: 0.3;
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
@import "./MessageStrip-parameters.css";
@import "./Panel-parameters.css";
@import "../base/Popover-parameters.css";
@import "./PopupBlockLayer-parameters.css";
@import "./PopupsCommon-parameters.css";
@import "../base/PopupBlockLayer-parameters.css";
@import "./ProgressIndicator-parameters.css";
@import "./RadioButton-parameters.css";
@import "../base/RatingIndicator-parameters.css";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@

:root {
--_ui5_dialog_header_state_line_height: 0.125rem;
--_ui5_dialog_block_layer_opacity: 0.3;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@import "../base/PopupBlockLayer-parameters.css";

:root {
--_ui5_popup_block_layer_opacity: 0.3;
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
@import "./MessageStrip-parameters.css";
@import "./Panel-parameters.css";
@import "../base/Popover-parameters.css";
@import "./PopupBlockLayer-parameters.css";
@import "./PopupsCommon-parameters.css";
@import "../base/PopupBlockLayer-parameters.css";
@import "./ProgressIndicator-parameters";
@import "./RadioButton-parameters.css";
@import "./RatingIndicator-parameters.css";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@

:root {
--_ui5_dialog_header_state_line_height: 0.125rem;
--_ui5_dialog_block_layer_opacity: 0.3;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@import "../base/PopupBlockLayer-parameters.css";

:root {
--_ui5_popup_block_layer_opacity: 0.3;
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
@import "./MessageStrip-parameters.css";
@import "./Panel-parameters.css";
@import "../base/Popover-parameters.css";
@import "./PopupBlockLayer-parameters.css";
@import "./PopupsCommon-parameters.css";
@import "../base/PopupBlockLayer-parameters.css";
@import "../sap_horizon_hcb/ProgressIndicator-parameters";
@import "./RadioButton-parameters.css";
@import "./RatingIndicator-parameters.css";
Expand Down

0 comments on commit 371c547

Please sign in to comment.