Skip to content

Regroup Styles settings into Your Styles and Shared Styles groups#1909

Draft
kmcginnes wants to merge 2 commits into
mainfrom
regroup-styles-settings
Draft

Regroup Styles settings into Your Styles and Shared Styles groups#1909
kmcginnes wants to merge 2 commits into
mainfrom
regroup-styles-settings

Conversation

@kmcginnes

@kmcginnes kmcginnes commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Description

Restructures the Styles settings screen into two action groups that mirror the "Manage Configuration Data" group in General settings:

  • Manage Your Styles — save-to-file and reset-your-styles actions
  • Manage Shared Styles — load-from-file and reset-shared-styles actions

With the actions grouped by what they act on, the buttons drop to single words (Save, Load, Reset) instead of the previous full phrases. Each Reset button carries a distinct aria-label so the two remain distinguishable to screen readers.

The old layout paired a "Style Sharing" group with a separate danger-variant "Danger Zone" group; that danger grouping is intentionally gone, so the now-unused danger variant is dropped from the shared Group component (it can be reintroduced later if needed).

This keeps the existing "shared styles" terminology unchanged — the rename to "theme" is a separate follow-up.

How to read

  1. SettingsStyles.tsx — the core change: the two-group layout
  2. Group.tsx — supporting cleanup: removes the dead danger variant

The button files (Save/Load/Reset*StylesButton.tsx) are small single-word label swaps plus aria-labels on the two Reset triggers.

Validation

  • pnpm checks passes
  • pnpm test passes (Settings suite: 13 tests, including the updated SaveStylesButton label assertion)

Related Issues

kmcginnes added 2 commits July 8, 2026 17:49
Split the single Style Sharing / Danger Zone layout into two action groups
mirroring General settings' Manage Configuration Data group. Buttons drop to
single words (Save, Load, Reset) now that the group titles say what they act
on; each Reset button keeps a distinct aria-label so the two are
distinguishable to screen readers.

Part of #1898
The Styles settings regroup removed the last Group danger variant usage; drop
the now-dead variant and its header styling. It can be reintroduced if a danger
grouping is needed again.

Part of #1898
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regroup the Styles settings screen into "Manage Your Styles" and "Manage Shared Styles"

1 participant