Repository navigation
refactor(ui): extend <.button> with danger/ghost variants and migrate primary action sites - #155
Merged
Merged
Conversation
2 tasks
mwoods79
force-pushed
the
refactor/migrate-raw-buttons
branch
from
May 2, 2026 02:24
538c356 to
923f610
Compare
… primary action sites
Extend <.button> so it can replace the most prominent raw <button>
tags without needing inline class strings:
- Add a :class attr that callsites can append to the variant defaults.
- Add variant="danger" for filled destructive actions (red bg).
- Add variant="ghost" for inline text-link style buttons (no border,
hover underline, no uppercase font-display).
- Add a :size attr ("sm" or "md") for compact buttons in tables and
inline groups.
Migrate seven raw <button> tags that fit the extended component:
- admin_live.ex Search / Clear / Update (3 buttons)
- huddl_live.ex Search / Clear all (2 buttons)
- huddl_live/show.ex Delete Huddl (1 button)
- auth_live/register.ex Generate Random Name (1 button)
The remaining raw <button> tags fall into three categories that are
not a fit for <.button>:
- Tab-style buttons in group_live/show.ex (border-b active indicator).
- Icon-only cancel/edit buttons across upload widgets (tracked in #154).
- Full-width menu/list-row items in pickers and dropdowns.
Refs #150
mwoods79
force-pushed
the
refactor/migrate-raw-buttons
branch
from
May 2, 2026 02:39
923f610 to
cd9c2b0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extends `<.button>` and migrates the most prominent raw `` tags. Closes the highest-leverage portion of #150 and splits the rest off into #154.
`<.button>` additions
Migrated callsites (7)
Out of scope (intentional)
Refs #150 (kept open for further migration as patterns extract).
Test plan