refactor: Button components (#6929)

* feat: refactor button components

* fix: qa

* fix: storybook

* a11y: pass

* fix: build

* fix: rename default ->md

* fix: lint

* docs: buttons.md

* refactor part 1

* refactor part 2

* fix: undo refactor for fresh restart

* refactor

* Revert "refactor"

This reverts commit 96d65902d7.

* refactor: part 1

* fix: qa

* fix: qa

* fix: qa

* fix: qa

* fix: qa

* fix: qa

* fix: qa

* fix: qa

* fix: remove text-contrast

* fix: qa

* fix: v-tooltip

* fix: lint

* fix: split broken

* fix: passkey qa

* fix: qa

* fix: qa

* fix: prepr

* fix: splitbutton

* improve button group seam

---------

Signed-off-by: Calum H. <calum@modrinth.com>
Co-authored-by: Prospector <6166773+Prospector@users.noreply.github.com>
This commit is contained in:
Calum H.
2026-08-04 13:54:04 -07:00
committed by GitHub
co-authored by Prospector
parent 6cfe999cb3
commit bb2193b6f5
398 changed files with 13688 additions and 13133 deletions
+15 -20
View File
@@ -17,10 +17,11 @@ import {
Accordion,
Avatar,
Badge,
ButtonStyled,
Button,
Checkbox,
commonMessages,
defineMessages,
IconButton,
IntlFormatted,
useVIntl,
} from '@modrinth/ui'
@@ -546,20 +547,16 @@ useSeoMeta({
{{ formatMessage(messages.description) }}
</h2>
<div class="button-group">
<ButtonStyled v-if="os" color="brand" size="large">
<button rel="noopener nofollow" @click="handleDownload">
<LinuxIcon v-if="os === 'Linux'" />
<WindowsIcon v-else-if="os === 'Windows'" />
<AppleIcon v-else-if="os === 'Mac'" />
{{ formatMessage(messages.downloadModrinthAppButton) }}
</button>
</ButtonStyled>
<ButtonStyled type="outlined" size="large">
<button @click="scrollToSection">
<ArrowDownIcon />
{{ formatMessage(messages.moreDownloadOptions) }}
</button>
</ButtonStyled>
<Button v-if="os" type="colored" color="brand" size="xl" @click="handleDownload">
<LinuxIcon v-if="os === 'Linux'" />
<WindowsIcon v-else-if="os === 'Windows'" />
<AppleIcon v-else-if="os === 'Mac'" />
{{ formatMessage(messages.downloadModrinthAppButton) }}
</Button>
<Button type="outlined" size="xl" @click="scrollToSection">
<ArrowDownIcon />
{{ formatMessage(messages.moreDownloadOptions) }}
</Button>
</div>
<img src="https://cdn-raw.modrinth.com/app-landing/app-screenshot.webp" alt="" />
<div class="bottom-transition" />
@@ -602,11 +599,9 @@ useSeoMeta({
<div class="cell">{{ mod.version }}</div>
<div class="cell check">
<Checkbox :model-value="true" tabindex="-1" />
<ButtonStyled circular type="transparent">
<button tabindex="-1">
<TrashIcon />
</button>
</ButtonStyled>
<IconButton type="quiet" label="Delete" tabindex="-1">
<TrashIcon />
</IconButton>
</div>
</div>
</div>