This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 831
Make ToastContainer compatible with RTL layout #8230
Merged
Merged
Changes from 11 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
9e81556
Fix _ToastContainer.scss
luixxiul 16dcdca
Merge branch 'develop' into rtl-pick
luixxiul ed5704c
Merge branch 'develop' into rtl-pick
luixxiul 11fd22a
Merge branch 'develop' into rtl-pick
luixxiul c41948c
Improve existing rules
luixxiul 9f94cf4
Set the count indicator on the end side of the div
luixxiul 2e5b2a5
Merge branch 'develop' into rtl-pick
luixxiul 419bc5f
Merge branch 'develop' into rtl-pick
luixxiul bf6af7c
Remove the vertical-align property since it has no longer effect
luixxiul 83916a8
Merge branch 'develop' into rtl-pick
luixxiul c793887
Merge branch 'develop' into rtl-pick
luixxiul 294b21b
Merge branch 'develop' into rtl-pick
luixxiul 79bd8f9
Merge branch 'develop' into rtl-pick
luixxiul f0ed532
Merge branch 'develop' into rtl-pick
luixxiul File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,26 +108,25 @@ limitations under the License. | |
} | ||
|
||
.mx_Toast_title { | ||
display: flex; | ||
align-items: center; | ||
column-gap: 8px; | ||
width: 100%; | ||
box-sizing: border-box; | ||
|
||
h2 { | ||
grid-column: 1 / 3; | ||
grid-row: 1; | ||
margin: 0; | ||
font-size: $font-15px; | ||
font-weight: 600; | ||
display: inline; | ||
width: auto; | ||
vertical-align: middle; | ||
} | ||
|
||
span { | ||
padding-left: 8px; | ||
float: right; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this might have been deliberate, even in a RTL language - will have to check with design. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
.mx_Toast_title_countIndicator { | ||
font-size: $font-12px; | ||
line-height: $font-22px; | ||
color: $secondary-content; | ||
margin-inline-start: auto; // on the end side of the div | ||
} | ||
} | ||
|
||
|
@@ -137,17 +136,14 @@ limitations under the License. | |
} | ||
|
||
.mx_Toast_buttons { | ||
float: right; | ||
display: flex; | ||
justify-content: flex-end; | ||
column-gap: 5px; | ||
|
||
.mx_AccessibleButton { | ||
min-width: 96px; | ||
box-sizing: border-box; | ||
} | ||
|
||
.mx_AccessibleButton + .mx_AccessibleButton { | ||
margin-left: 5px; | ||
} | ||
} | ||
|
||
.mx_Toast_description { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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 don't think we need a flexbox here? What is it fixing?
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.
iconcounter (if any) horizontallyiconcounter without usingmarginpadding-left: 8px;
I edited the first post to explain the reason why flexbox should realize what is intended here.