Skip to content

Commit 8f5cdea

Browse files
refactor: use muted-textonly variant for SectionWidgets icon buttons (#8972)
Fixes #8890 Switches the Reset All and Locate Node buttons from `variant="textonly"` with manual text color overrides to `variant="muted-textonly"`, which already provides the muted text color. Removes redundant `cursor-pointer` and `text-muted-foreground` classes. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-8972-refactor-use-muted-textonly-variant-for-SectionWidgets-icon-buttons-30c6d73d3650819abca7e4ca5be77f15) by [Unito](https://www.unito.io)
1 parent 0cfd1d8 commit 8f5cdea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/rightSidePanel/parameters/SectionWidgets.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,9 @@ defineExpose({
217217
</Button>
218218
<Button
219219
v-if="!isEmpty"
220-
variant="textonly"
220+
variant="muted-textonly"
221221
size="icon-sm"
222-
class="subbutton shrink-0 size-8 cursor-pointer text-muted-foreground hover:text-base-foreground"
222+
class="subbutton shrink-0 size-8 hover:text-base-foreground"
223223
:title="t('rightSidePanel.resetAllParameters')"
224224
:aria-label="t('rightSidePanel.resetAllParameters')"
225225
@click.stop="handleResetAllWidgets"
@@ -228,9 +228,9 @@ defineExpose({
228228
</Button>
229229
<Button
230230
v-if="canShowLocateButton"
231-
variant="textonly"
231+
variant="muted-textonly"
232232
size="icon-sm"
233-
class="subbutton shrink-0 mr-3 size-8 cursor-pointer text-muted-foreground hover:text-base-foreground"
233+
class="subbutton shrink-0 mr-3 size-8 hover:text-base-foreground"
234234
:title="t('rightSidePanel.locateNode')"
235235
:aria-label="t('rightSidePanel.locateNode')"
236236
@click.stop="handleLocateNode"

0 commit comments

Comments
 (0)