This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
Align inline buttons on FilteredDeviceListHeader
on Sessions user settings tab
#11067
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.
Fixes element-hq/element-web#25545
Regressed by https://github.com/matrix-org/matrix-react-sdk/pull/10972/files#diff-0c6139dd8fb5707cd9ac7874d270d5a8df772679956e2f6e43f11a45494cf3e2R36-R39 (#10972)
Before:
After:
.mx_SettingsTab .mx_AccessibleButton
is a very broad selector and matches buttons on every settings tab. This PR intends to fix the issue by limiting the selector to have it match the buttons onGeneral
user settings tab which #10972 addressed. Since the selectormx_GeneralUserSettingsTab
has been deprecated,mx_tabpanel_USER_GENERAL_TAB
is used instead.It is technically possible to "fix" the issue by overriding the values with or without
!important
flag, but obviously it is the default values that should be modified, so that declarations for overriding them are not required in the first place.This fix is rather temporary. Later, a component can be created for buttons on
SettingsTab
if needed, to normalize how the buttons are rendered there.Signed-off-by: Suguru Hirahara luixxiul@users.noreply.github.com
type: defect
Checklist
Here's what your changelog entry will look like:
🐛 Bug Fixes
FilteredDeviceListHeader
on Sessions user settings tab (#11067). Fixes Sessions manager's inline action buttons are not aligned element-hq/element-web#25545. Contributed by @luixxiul.