Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH Refactor sudo mode components to reduce code reuse #1905

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

GuySartorelli
Copy link
Member

Tested the HOC locally by reinstating the HOC to MFA (i.e. undo the JS changes from silverstripe/silverstripe-mfa#587) and removing the calls to requireSudoMode().

Comparison of visual appearance is below. Functionality should also be identical to what it was without this PR.

If anyone customised the HOC styling or was relying on those selectors they'll be out of luck - I can't be assed updating the new component to use the old css class names so I used its css instead of what was there prior to the recent work.

OLD look

Screenshot from 2025-02-19 11-37-40
Screenshot from 2025-02-19 11-37-57

NEW look

Screenshot from 2025-02-20 15-05-16
Screenshot from 2025-02-20 15-05-34

Issue

Copy link
Member

@emteknetnz emteknetnz left a comment

Choose a reason for hiding this comment

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

Seems to work well

@emteknetnz emteknetnz merged commit a3ec77b into silverstripe:2 Feb 20, 2025
16 checks passed
@emteknetnz emteknetnz deleted the pulls/2/cleanup-sudo branch February 20, 2025 22:26
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.

2 participants