-
-
Notifications
You must be signed in to change notification settings - Fork 831
Add default properties to link buttons and remove redundant settings #8151
Conversation
Remove redundant font-size settings _FeedbackDialog.scss _GenericFeatureFeedbackDialog.scss _Login.scss _NewRoomIntro.scss _NotificationSettingsTab.scss _PinnedEventTile.scss _PreferencesUserSettingsTab.scss _SpaceCreateMenu.scss _ToastContainer.scss _UserMenu.scss Specify font-size - _ProfileSettings.scss - _SpaceBasicSettings.scss - _SpaceSettingsDialog.scss Signed-off-by: Suguru Hirahara <[email protected]>
Remove redundant setting - _GenericFeatureFeedbackDialog.scss - _PinnedEventTile.scss - _SpaceCreateMenu.scss Signed-off-by: Suguru Hirahara <[email protected]>
Remove redundant setting - _SpotlightDialog.scss - _UserMenu.scss Signed-off-by: Suguru Hirahara <[email protected]>
Signed-off-by: Suguru Hirahara <[email protected]>
Treat the button as its name indicates. For elements that should not be inlined, "link" should be used. Signed-off-by: Suguru Hirahara <[email protected]>
Codecov Report
@@ Coverage Diff @@
## develop #8151 +/- ##
========================================
Coverage 28.68% 28.68%
========================================
Files 851 851
Lines 49778 49778
Branches 12657 12657
========================================
Hits 14281 14281
Misses 35497 35497 |
@@ -88,13 +88,12 @@ limitations under the License. | |||
div.mx_AccessibleButton_kind_link.mx_Login_forgot { | |||
display: block; | |||
margin: 0 auto; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These will be able to be removed by creating a wrapper and setting kind="link_inline"
in favor of link
.
@@ -77,6 +77,7 @@ limitations under the License. | |||
|
|||
.mx_AccessibleButton_hasKind { | |||
&.mx_AccessibleButton_kind_link { | |||
font-size: $font-14px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -65,6 +65,7 @@ limitations under the License. | |||
display: inline-block; | |||
margin: auto 18px; | |||
color: #368bd6; | |||
font-size: $font-14px; // See _SpaceSettingsDialog.scss |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -118,7 +114,5 @@ $spacePanelWidth: 68px; | |||
.mx_AccessibleButton_kind_link { | |||
color: $accent; | |||
position: relative; | |||
font-size: inherit; | |||
line-height: inherit; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -92,8 +92,6 @@ limitations under the License. | |||
|
|||
.mx_AccessibleButton_kind_link { | |||
margin-left: 12px; | |||
font-size: inherit; | |||
line-height: inherit; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.mx_AccessibleButton_kind_link { | ||
font-size: inherit; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.mx_AccessibleButton_kind_link { | ||
font-weight: normal; | ||
font-size: inherit; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.mx_AccessibleButton_kind_link { | ||
font-size: inherit; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.mx_AccessibleButton_kind_link { | ||
font-size: inherit; | ||
line-height: inherit; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -241,7 +241,6 @@ limitations under the License. | |||
.mx_SpotlightDialog_recentSearches > h4 > .mx_AccessibleButton_kind_link { | |||
padding: 0; | |||
float: right; | |||
font-weight: normal; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
.mx_AccessibleButton_kind_link { | ||
font-size: inherit; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -61,6 +61,7 @@ limitations under the License. | |||
margin-bottom: 28px; | |||
|
|||
> .mx_AccessibleButton_kind_link { | |||
font-size: $font-14px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
.mx_AccessibleButton_kind_link { | ||
font-size: inherit; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -88,13 +88,12 @@ limitations under the License. | |||
div.mx_AccessibleButton_kind_link.mx_Login_forgot { | |||
display: block; | |||
margin: 0 auto; | |||
// style it as a link | |||
font-size: inherit; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is generally fine, though as a precaution I'd like to land it after we cut the RC so we have an opportunity to fix any regressions on a more relaxed timescale - button code is historically notorious for causing issues, even before recent changes.
No problem about blocking until the next RC cut.
I would agree. As far as I checked, the code is quite complex and vulnerable to regressions. |
Thanks for checking- I'll keep an eye on a regression |
Like a previous PR on link buttons, this PR sets additional properties to them as default ones. There should be no major regressions as I checked manually and set properties to elements which need specific settings.
This PR also sets
display: inline
tolink_inline
to reflect its name and cancelinline-flex
inherited frommx_AccessibleButton_hasKind
.inline-flex
places button texts weirdly and breaks the design when they are over multiple lines.Signed-off-by: Suguru Hirahara [email protected]
Notes: none
type: task
This change is marked as an internal change (Task), so will not be included in the changelog.
Preview: https://pr8151--matrix-react-sdk.netlify.app
⚠️ Do you trust the author of this PR? Maybe this build will steal your keys or give you malware. Exercise caution. Use test accounts.