-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
feat(rtl): optimize the new mixins for smaller bundle, ltr seperation #11635
Merged
Merged
Changes from 85 commits
Commits
Show all changes
87 commits
Select commit
Hold shift + click to select a range
cb5ac7c
refactor(item): replaced item-left with item-start
AmitMY 4509c1f
style(item): fix spacing
AmitMY 2172d11
fix(item): add backwards support for left/right in ng-content
AmitMY 22d24a0
fix(item): deprecated old variables, not breaking change
AmitMY e1da67d
Merge remote-tracking branch 'origin/breaking-item' into breaking-item
AmitMY d103932
Merge branch 'master' into breaking-item
AmitMY 13294ed
feat(rtl): padding mixin
AmitMY 5ab8d60
feat(rtl): change all padding variables to start/end
AmitMY 2b3897a
feat(rtl): replace all padding-side with start/end
AmitMY abdff51
Merge remote-tracking branch 'origin/start-end' into start-end
AmitMY 6629092
revert(functions): remove mixins
AmitMY ce2d9f1
feat(scss): add padding-horizontal and rtl functions (thanks brandy)
AmitMY a6c1feb
feat(padding): use padding horizontal mixin everywhere
AmitMY 1a4e0d4
feat(padding): use padding horizontal mixin everywhere
AmitMY a332df7
fix(lint): change properties order. tests passing
AmitMY bfe80bb
fix(sass-functions): reorder functions to avoid warning
AmitMY bdafbf8
fix(scss): fix variable name
AmitMY 762fdb0
perf(rtl): add check if need rtl selector
AmitMY 8f228e8
feat(scss): add full padding function
AmitMY 4f81dd2
feat(scss): add border-radius mixin
AmitMY f2077f4
fix(rtl): change border-radius to use mixin
AmitMY d27b7b0
perf(scss): only override if has something to override
AmitMY 8ebd500
feat(scss): add margin scss variables for sides
AmitMY 40624db
feat(scss): add margin mixin
AmitMY bc93198
fix(scss): fix wrong support for 2/3 args
AmitMY c79db3b
feat(rtl): spread margins/paddings
AmitMY 788728a
feat(rtl): spread margins/paddings
AmitMY ffce076
feat(position): add rtl support for absolute
AmitMY 2c89379
fix(rtl): add missing calls
AmitMY 0d4e5c1
fix(item): old attributes deprecated support
AmitMY df3f74e
revert(changelog): not intended to be changed
AmitMY e428c61
Merge branch 'master' into start-end
AmitMY cfecb3e
Merge branch 'master' into start-end
AmitMY 2b409e1
fix(sass-functions): and not &&
AmitMY 00152e9
fix(padding): merge + missing padding
AmitMY 93f78c2
fix(padding): merge + missing padding
AmitMY 6f84b7b
style(): remove newline
AmitMY b8721c8
refactor(mixins): move mixins to mixins file
AmitMY cf99437
style(): fix alignment
AmitMY d1ac9a0
fix(item): right padding should not be set
AmitMY 3cbc8d6
fix(): incorrect defaults
AmitMY 3577190
feat(scss-lint): disable some side variables
AmitMY 7e38881
fix(scss): lint passes
AmitMY 1a863ef
feat(lint): disabled text-align
AmitMY 7307706
fix(): correct variable name
AmitMY b6ad052
fix(fab): missed a comma
AmitMY 4376436
Merge branch 'master' into start-end
AmitMY d1ce2d6
fix(rtl): rtl method incorrect for multiple selectors
AmitMY 8d045b7
fix(rtl): toolbar bad merge
AmitMY c25eca6
fix(rtl): icon-only is in px not em
AmitMY 3757a44
fix(rtl): toggle padding
AmitMY 5ad8328
feat(rtl): correct notation for rtl custom
AmitMY 02b6df9
Merge branch 'master' into breaking-item
AmitMY 7dcdac6
Merge branch 'master' into start-end
AmitMY 55ac2c5
Merge branch 'breaking-item' into start-end
AmitMY 94cf77e
Merge branch 'breaking-item' into start-end
AmitMY 2857678
Merge branch 'master' into start-end
AmitMY cca8ecc
feat(rtl): optimize bundle result
AmitMY 38a498d
feat(float): use new standard
AmitMY f2a3cfe
feat(platform): gotta have direction on html
AmitMY ccab2cb
fix(scss): add import + change code order
AmitMY 6a983d1
fix(lint): passes
AmitMY 176b454
fix(scss): fix for deprecated usages
AmitMY b466083
fix(scss): property use #{}
AmitMY 784ae02
fix(scss): property use #{}
AmitMY 5df03bd
merge with master
AmitMY 1cec037
fix(rtl): change css specificity, increase bundle size for multidirec…
AmitMY 842d099
fix(scss): mixin manages priority
AmitMY d97109b
fix(scss): select icon
AmitMY e2875dd
Merge branch 'master' into start-end-optimize
AmitMY a8f07cd
fix(scss): correct range variable
AmitMY d7bec87
fix(lint): unused import
AmitMY fbb0713
Merge remote-tracking branch 'upstream/master'
AmitMY 96bd787
Merge branch 'master' into start-end-optimize
AmitMY ae5fbec
fix(multi-dir): things that ignore PropertySpelling must be under mul…
AmitMY b0cadc2
fix(multi-dir): things that ignore PropertySpelling must be under mul…
AmitMY 804cf41
fix(include-rtl): change to app-direction, to be able to set rtl only…
AmitMY 6614d3a
fix(rtl): remove incorrect split-pane rtl behavior
AmitMY 38eeeb9
fix(menu): start needs position on rtl
AmitMY 038abfe
fix(float): renamed test file, add float mixin
AmitMY 97054bf
fix(scss-lint): lint excluded files
AmitMY bb71e0b
fix(scss): add missing unit
AmitMY d9c1546
refactor(scss): change dir to direction, as the correct property name
AmitMY 4cc7c62
Merge branch 'master' into start-end-optimize
AmitMY e241c54
Merge remote-tracking branch 'remotes/upstream/master' into start-end…
AmitMY 6efdbb5
Merge branch 'master' into start-end-optimize
AmitMY 1dab3e2
fix(app-direction): replace last usage of include-rtl
AmitMY 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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Why do we need to use the mixin for
margin-bottom
,margin-top
,padding-bottom
, orpadding-top
? These shouldn't be affected by RTL, no?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.
In theory, you are correct, and that is what I've done before. In practice no.
Gives the span
margin: 5px
, because of specificity.Gives the span
margin: 1px 5px 5px 5px
, because of specificity. (which is the wanted behavior)Don't worry, it gets super squashed at the end