Skip to content

chore: replace btn with button#7685

Open
fikrydev wants to merge 8 commits into
mainfrom
chore/replace-btn-with-button
Open

chore: replace btn with button#7685
fikrydev wants to merge 8 commits into
mainfrom
chore/replace-btn-with-button

Conversation

@fikrydev

Copy link
Copy Markdown
Contributor

Summary

Remove any usage of btn with button in the repo.

How did you test this change?

@fikrydev fikrydev self-assigned this Jun 22, 2026
Comment thread javascript/commons/Analytics.js Outdated
@ElectricalBoy

Copy link
Copy Markdown
Collaborator

imo it's better to keep .btn to distinguish our pseudo-buttons with <button> elements

@fikrydev

Copy link
Copy Markdown
Contributor Author

imo it's better to keep .btn to distinguish our pseudo-buttons with <button> elements

.btn will be phased out and .button will take its place

@fikrydev fikrydev force-pushed the chore/replace-btn-with-button branch from f117de4 to 0504dcf Compare June 30, 2026 11:29
@fikrydev fikrydev marked this pull request as ready for review June 30, 2026 11:32
@fikrydev fikrydev requested review from a team as code owners June 30, 2026 11:32
Copilot AI review requested due to automatic review settings June 30, 2026 11:32
@fikrydev fikrydev changed the title replace btn with button chore: replace btn with button Jun 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR standardizes UI “button” styling hooks by replacing legacy btn* class usage with button* class names across Lua widgets, JavaScript UI code, and SCSS selectors.

Changes:

  • Renamed base/variant/size classes from btn, btn-secondary, btn-small, etc. to button, button--secondary, button--small, etc.
  • Updated SCSS selectors referencing btn* classes to the new button* names.
  • Updated Lua spec expectations to match the new class names.

Reviewed changes

Copilot reviewed 13 out of 27 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
stylesheets/commons/Match.scss Updates match page styling selectors from .btn to .button.
stylesheets/commons/Mainpage.scss Updates mainpage countdown selector from .btn-secondary to .button--secondary.
lua/wikis/commons/Widget/Match/VodsDropdownButton.lua Renames the “active” class for the VODs toggle button (but currently introduces a typo).
lua/wikis/commons/Widget/Basic/Button.lua Renames all generated button classes from btn* to button*.
lua/wikis/commons/MatchTicker/DisplayComponents.lua Updates generated matchpage icon classes to the new button* names.
lua/wikis/ageofempires/ParticipantTable/Custom.lua Updates participant table toggle button classes to the new button* names.
lua/spec/dropdown_spec.lua Updates dropdown tests to assert new button* class names.
javascript/commons/Slider.js Updates slider navigation control classes to the new button* names.
javascript/commons/Selectall.js Updates “Select” / “Select and copy” button classes to the new button* names.
javascript/commons/Miscellaneous.js Updates teamcard toggle button classes to the new button* names.
javascript/commons/ExportImage.js Updates dropdown widget toggle button classes to the new button* names.
javascript/commons/Commons_tools.js Updates dynamically injected form button classes to the new button* names.
javascript/commons/Collapse.js Updates collapse UI button classes and selector queries from .btn to .button.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lua/wikis/commons/Widget/Match/VodsDropdownButton.lua Outdated
Comment thread lua/wikis/commons/Widget/Basic/Button.lua
fikrydev and others added 4 commits June 30, 2026 20:07
…/Lua-Modules into chore/replace-btn-with-button
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

@hjpalpha hjpalpha left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems okay on phone

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a pending lakeside MR? Otherwise this is a bug

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.

5 participants