Skip to content

Commit

Permalink
fix(ui5-notification-list-group): group header hight is shorter when …
Browse files Browse the repository at this point in the history
…collapsed

There was too much space between collapsed group headers

Fixes: #9911
  • Loading branch information
kskondov committed Sep 27, 2024
1 parent b8b9a98 commit da1dddc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/fiori/src/themes/NotificationListGroupItem.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
cursor: pointer;
}

.ui5-nli-group-header[aria-expanded="false"] {
height: 2.75rem;
}

/* The focus is on the whole group but should be visualized on the Group Header */
:host([desktop]) .ui5-nli-focusable.ui5-nli-group-root:focus .ui5-nli-group-header::before,
.ui5-nli-focusable.ui5-nli-group-root:focus-visible .ui5-nli-group-header::before {
Expand All @@ -54,6 +58,12 @@
pointer-events: none;
}

:host([desktop]) .ui5-nli-focusable.ui5-nli-group-root:focus .ui5-nli-group-header[aria-expanded="false"]::before,
.ui5-nli-focusable.ui5-nli-group-root:focus-visible .ui5-nli-group-header[aria-expanded="false"]::before {
top: var(--_ui5-notification_group_header-margin_collapsed);
bottom: var(--_ui5-notification_group_header-margin_collapsed);
}

.ui5-nli-group-toggle-icon {
min-width: 1rem;
min-height: 1rem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
--_ui5-notification_item-border-radius: 0px;
--_ui5-notification_group_header-border-bottom-width: 0.0625rem;
--_ui5-notification_group_header-margin: 0px;
--_ui5-notification_group_header-margin_collapsed: 0.05rem;
--_ui5-notification_group_header-padding: 1rem 0.5rem;
--_ui5-notification_item-state-icon-padding: 0.625rem;
--_ui5-notification_item-border-bottom: var(--ui5-listitem-border-bottom);
Expand Down

0 comments on commit da1dddc

Please sign in to comment.