Skip to content

Commit

Permalink
feat(ui5-panel): enable custom styling of title (#7688)
Browse files Browse the repository at this point in the history
  • Loading branch information
elenastoyanovaa committed Oct 12, 2023
1 parent 1299f76 commit 9d5a3d1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
9 changes: 4 additions & 5 deletions packages/main/src/themes/Panel.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
outline: none;
box-sizing: border-box;
padding-right: var(--_ui5_panel_header_padding_right);
font-family: "72override", var(--sapFontHeaderFamily);
font-size: var(--sapGroup_Title_FontSize);
font-weight: normal;
color: var(--sapGroup_TitleTextColor);
}

.ui5-panel-header-icon {
Expand Down Expand Up @@ -81,11 +85,6 @@
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-family: "72override", var(--sapFontHeaderFamily);
font-size: var(--sapGroup_Title_FontSize);
font-weight: normal;
color: var(--sapGroup_TitleTextColor);
font-weight: normal;
}

.ui5-panel-content {
Expand Down
2 changes: 1 addition & 1 deletion packages/main/test/pages/Panel.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@

<br>

<ui5-panel id="panel-expandable" accessible-role="Complementary" header-text="Both expandable and expanded" header-level="H4">
<ui5-panel id="panel-expandable" accessible-role="Complementary" header-text="Both expandable and expanded with custom color" header-level="H4">


<!-- Content -->
Expand Down
4 changes: 4 additions & 0 deletions packages/main/test/pages/styles/Panel.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@
#panel-stickyHeader::part(content) {
max-height: 70px;
}

#panel-expandable::part(header) {
color: green;
}

0 comments on commit 9d5a3d1

Please sign in to comment.