Skip to content

Commit 0314190

Browse files
feat(ui5-bar): change part to header
1 parent af841d5 commit 0314190

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

packages/fiori/src/ViewSettingsDialog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ type VSDInternalSettings = {
114114
* @extends UI5Element
115115
* @since 1.0.0-rc.16
116116
* @public
117-
* @csspart reset-button - Used to style the reset button in the header.
117+
* @csspart header - Used to style the header.
118118
*/
119119
@customElement({
120120
tag: "ui5-view-settings-dialog",

packages/fiori/src/ViewSettingsDialogTemplate.tsx

Lines changed: 1 addition & 2 deletions
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
@@ -36,7 +36,6 @@ function ViewSettingsDialogTemplateHeader(this: ViewSettingsDialog) {
3636
<div class="ui5-vsd-header-end">
3737
<Button
3838
design="Transparent"
39-
part="reset-button"
4039
onClick={this._resetSettings}
4140
disabled={this._disableResetButton}
4241
>{this._resetButtonLabel}</Button>

packages/fiori/test/pages/ViewSettingsDialog.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
</script>
1414

1515
<style>
16-
#vsdGroup::part(reset-button) {
17-
background-color: pink;
16+
#vsd::part(header) {
17+
--sapButton_Lite_TextColor: pink;
1818
}
1919
</style>
2020

0 commit comments

Comments
 (0)