Skip to content

Commit 3206b90

Browse files
feat(ui5-view-settings-dialog): provide part for header (#12627)
fixes: #12479
1 parent 13b95c8 commit 3206b90

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

packages/fiori/src/ViewSettingsDialog.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ type VSDInternalSettings = {
114114
* @extends UI5Element
115115
* @since 1.0.0-rc.16
116116
* @public
117+
* @csspart header - Used to style the header.
117118
*/
118119
@customElement({
119120
tag: "ui5-view-settings-dialog",

packages/fiori/src/ViewSettingsDialogTemplate.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import type ViewSettingsDialog from "./ViewSettingsDialog.js";
1616
function ViewSettingsDialogTemplateHeader(this: ViewSettingsDialog) {
1717
return (
1818
<div slot="header" class="ui5-vsd-header">
19-
<div class="ui5-vsd-header-container">
19+
<div class="ui5-vsd-header-container" part="header">
2020
<div class="ui5-vsd-header-start">
2121
{this.showBackButton && (
2222
<Button

packages/fiori/test/pages/ViewSettingsDialog.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212
}
1313
</script>
1414

15+
<style>
16+
#vsd::part(header) {
17+
--sapButton_Lite_TextColor: pink;
18+
}
19+
</style>
20+
1521
<script src="%VITE_BUNDLE_PATH%" type="module"></script>
1622

1723
<link rel="stylesheet" type="text/css" href="./styles/ViewSettingsDialog.css">

0 commit comments

Comments
 (0)