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)
This commit is contained in:
Christian Byrne
2026-02-20 01:00:33 -08:00
committed by GitHub
parent 0cfd1d8e1f
commit 8f5cdead73

View File

@@ -217,9 +217,9 @@ defineExpose({
</Button>
<Button
v-if="!isEmpty"
variant="textonly"
variant="muted-textonly"
size="icon-sm"
class="subbutton shrink-0 size-8 cursor-pointer text-muted-foreground hover:text-base-foreground"
class="subbutton shrink-0 size-8 hover:text-base-foreground"
:title="t('rightSidePanel.resetAllParameters')"
:aria-label="t('rightSidePanel.resetAllParameters')"
@click.stop="handleResetAllWidgets"
@@ -228,9 +228,9 @@ defineExpose({
</Button>
<Button
v-if="canShowLocateButton"
variant="textonly"
variant="muted-textonly"
size="icon-sm"
class="subbutton shrink-0 mr-3 size-8 cursor-pointer text-muted-foreground hover:text-base-foreground"
class="subbutton shrink-0 mr-3 size-8 hover:text-base-foreground"
:title="t('rightSidePanel.locateNode')"
:aria-label="t('rightSidePanel.locateNode')"
@click.stop="handleLocateNode"