Skip to content

Commit af841d5

Browse files
feat(ui5-view-settings-dialog): provide part for reset button
1 parent d9f3331 commit af841d5

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

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 reset-button - Used to style the reset button in the header.
117118
*/
118119
@customElement({
119120
tag: "ui5-view-settings-dialog",

packages/fiori/src/ViewSettingsDialogTemplate.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ function ViewSettingsDialogTemplateHeader(this: ViewSettingsDialog) {
3636
<div class="ui5-vsd-header-end">
3737
<Button
3838
design="Transparent"
39+
part="reset-button"
3940
onClick={this._resetSettings}
4041
disabled={this._disableResetButton}
4142
>{this._resetButtonLabel}</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+
#vsdGroup::part(reset-button) {
17+
background-color: 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)