Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Remove some obsolete button styles from _common.pcss #10548

Merged
merged 3 commits into from
Apr 24, 2023
Merged

Remove some obsolete button styles from _common.pcss #10548

merged 3 commits into from
Apr 24, 2023

Conversation

luixxiul
Copy link
Contributor

@luixxiul luixxiul commented Apr 8, 2023

This PR intends to remove obsolete styles for buttons from _common.pcss: mx_linkButton and mx_textButton. For buttons for links and texts, AccessibleButton is expected to be used.

Since the buttons class name is too general, I could not detect since which commit those classes have not been used.

type: task

Signed-off-by: Suguru Hirahara [email protected]

Checklist

  • Tests written for new code (and old code if feasible)
  • Linter and other CI checks pass
  • Sign-off given on the changes (see CONTRIBUTING.md)

This change is marked as an internal change (Task), so will not be included in the changelog.

@github-actions github-actions bot added Z-Community-PR Issue is solved by a community member's PR T-Task Refactoring, enabling or disabling functionality, other engineering tasks labels Apr 8, 2023
The block was added with fbab8ce for CreateKeyBackupDialog.js. It has been replaced with AccessibleButton element (see: onSkipPassPhraseClick on L283 and changeText on L314-316). The last function which had used mx_linkButton (_onOptOutClick) has been removed.

Signed-off-by: Suguru Hirahara <[email protected]>
mx_textButton has been replaced with AccessibleButton (with kind="link"). There is also not an element which uses the class.

Signed-off-by: Suguru Hirahara <[email protected]>
@luixxiul luixxiul marked this pull request as ready for review April 20, 2023 06:20
@luixxiul luixxiul requested a review from a team as a code owner April 20, 2023 06:20
Copy link
Contributor

@germain-gg germain-gg left a comment

Choose a reason for hiding this comment

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

Thank you 🚀

@germain-gg germain-gg added this pull request to the merge queue Apr 24, 2023
Merged via the queue into matrix-org:develop with commit ca102c4 Apr 24, 2023
@luixxiul luixxiul deleted the remove-button-styles branch April 24, 2023 15:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Task Refactoring, enabling or disabling functionality, other engineering tasks Z-Community-PR Issue is solved by a community member's PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants