Skip to content

Commit cfa9a89

Browse files
authored
refactor(multiple): clean up touch target RTL workaround (#23024)
We had to make some overrides to MDC's touch target styles in RTL, because they didn't align. The issue has been fixed in MDC (material-components/material-components-web#7169) so the workarounds can be cleaned up.
1 parent 14559e6 commit cfa9a89

File tree

5 files changed

+623
-636
lines changed

5 files changed

+623
-636
lines changed

package.json

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"@types/googlemaps": "^3.43.1",
6565
"@types/youtube": "^0.0.42",
6666
"core-js-bundle": "^3.8.2",
67-
"material-components-web": "12.0.0-canary.2952c6a76.0",
67+
"material-components-web": "12.0.0-canary.08d791f37.0",
6868
"rxjs": "^6.5.3",
6969
"rxjs-tslint-rules": "^4.33.1",
7070
"systemjs": "0.19.43",
@@ -96,53 +96,53 @@
9696
"@bazel/terser": "3.5.0",
9797
"@bazel/typescript": "3.5.0",
9898
"@firebase/app-types": "^0.6.1",
99-
"@material/animation": "12.0.0-canary.2952c6a76.0",
100-
"@material/auto-init": "12.0.0-canary.2952c6a76.0",
101-
"@material/banner": "12.0.0-canary.2952c6a76.0",
102-
"@material/base": "12.0.0-canary.2952c6a76.0",
103-
"@material/button": "12.0.0-canary.2952c6a76.0",
104-
"@material/card": "12.0.0-canary.2952c6a76.0",
105-
"@material/checkbox": "12.0.0-canary.2952c6a76.0",
106-
"@material/chips": "12.0.0-canary.2952c6a76.0",
107-
"@material/circular-progress": "12.0.0-canary.2952c6a76.0",
108-
"@material/data-table": "12.0.0-canary.2952c6a76.0",
109-
"@material/density": "12.0.0-canary.2952c6a76.0",
110-
"@material/dialog": "12.0.0-canary.2952c6a76.0",
111-
"@material/dom": "12.0.0-canary.2952c6a76.0",
112-
"@material/drawer": "12.0.0-canary.2952c6a76.0",
113-
"@material/elevation": "12.0.0-canary.2952c6a76.0",
114-
"@material/fab": "12.0.0-canary.2952c6a76.0",
115-
"@material/feature-targeting": "12.0.0-canary.2952c6a76.0",
116-
"@material/floating-label": "12.0.0-canary.2952c6a76.0",
117-
"@material/form-field": "12.0.0-canary.2952c6a76.0",
118-
"@material/icon-button": "12.0.0-canary.2952c6a76.0",
119-
"@material/image-list": "12.0.0-canary.2952c6a76.0",
120-
"@material/layout-grid": "12.0.0-canary.2952c6a76.0",
121-
"@material/line-ripple": "12.0.0-canary.2952c6a76.0",
122-
"@material/linear-progress": "12.0.0-canary.2952c6a76.0",
123-
"@material/list": "12.0.0-canary.2952c6a76.0",
124-
"@material/menu": "12.0.0-canary.2952c6a76.0",
125-
"@material/menu-surface": "12.0.0-canary.2952c6a76.0",
126-
"@material/notched-outline": "12.0.0-canary.2952c6a76.0",
127-
"@material/radio": "12.0.0-canary.2952c6a76.0",
128-
"@material/ripple": "12.0.0-canary.2952c6a76.0",
129-
"@material/rtl": "12.0.0-canary.2952c6a76.0",
130-
"@material/segmented-button": "12.0.0-canary.2952c6a76.0",
131-
"@material/select": "12.0.0-canary.2952c6a76.0",
132-
"@material/shape": "12.0.0-canary.2952c6a76.0",
133-
"@material/slider": "12.0.0-canary.2952c6a76.0",
134-
"@material/snackbar": "12.0.0-canary.2952c6a76.0",
135-
"@material/switch": "12.0.0-canary.2952c6a76.0",
136-
"@material/tab": "12.0.0-canary.2952c6a76.0",
137-
"@material/tab-bar": "12.0.0-canary.2952c6a76.0",
138-
"@material/tab-indicator": "12.0.0-canary.2952c6a76.0",
139-
"@material/tab-scroller": "12.0.0-canary.2952c6a76.0",
140-
"@material/textfield": "12.0.0-canary.2952c6a76.0",
141-
"@material/theme": "12.0.0-canary.2952c6a76.0",
142-
"@material/tooltip": "12.0.0-canary.2952c6a76.0",
143-
"@material/top-app-bar": "12.0.0-canary.2952c6a76.0",
144-
"@material/touch-target": "12.0.0-canary.2952c6a76.0",
145-
"@material/typography": "12.0.0-canary.2952c6a76.0",
99+
"@material/animation": "12.0.0-canary.08d791f37.0",
100+
"@material/auto-init": "12.0.0-canary.08d791f37.0",
101+
"@material/banner": "12.0.0-canary.08d791f37.0",
102+
"@material/base": "12.0.0-canary.08d791f37.0",
103+
"@material/button": "12.0.0-canary.08d791f37.0",
104+
"@material/card": "12.0.0-canary.08d791f37.0",
105+
"@material/checkbox": "12.0.0-canary.08d791f37.0",
106+
"@material/chips": "12.0.0-canary.08d791f37.0",
107+
"@material/circular-progress": "12.0.0-canary.08d791f37.0",
108+
"@material/data-table": "12.0.0-canary.08d791f37.0",
109+
"@material/density": "12.0.0-canary.08d791f37.0",
110+
"@material/dialog": "12.0.0-canary.08d791f37.0",
111+
"@material/dom": "12.0.0-canary.08d791f37.0",
112+
"@material/drawer": "12.0.0-canary.08d791f37.0",
113+
"@material/elevation": "12.0.0-canary.08d791f37.0",
114+
"@material/fab": "12.0.0-canary.08d791f37.0",
115+
"@material/feature-targeting": "12.0.0-canary.08d791f37.0",
116+
"@material/floating-label": "12.0.0-canary.08d791f37.0",
117+
"@material/form-field": "12.0.0-canary.08d791f37.0",
118+
"@material/icon-button": "12.0.0-canary.08d791f37.0",
119+
"@material/image-list": "12.0.0-canary.08d791f37.0",
120+
"@material/layout-grid": "12.0.0-canary.08d791f37.0",
121+
"@material/line-ripple": "12.0.0-canary.08d791f37.0",
122+
"@material/linear-progress": "12.0.0-canary.08d791f37.0",
123+
"@material/list": "12.0.0-canary.08d791f37.0",
124+
"@material/menu": "12.0.0-canary.08d791f37.0",
125+
"@material/menu-surface": "12.0.0-canary.08d791f37.0",
126+
"@material/notched-outline": "12.0.0-canary.08d791f37.0",
127+
"@material/radio": "12.0.0-canary.08d791f37.0",
128+
"@material/ripple": "12.0.0-canary.08d791f37.0",
129+
"@material/rtl": "12.0.0-canary.08d791f37.0",
130+
"@material/segmented-button": "12.0.0-canary.08d791f37.0",
131+
"@material/select": "12.0.0-canary.08d791f37.0",
132+
"@material/shape": "12.0.0-canary.08d791f37.0",
133+
"@material/slider": "12.0.0-canary.08d791f37.0",
134+
"@material/snackbar": "12.0.0-canary.08d791f37.0",
135+
"@material/switch": "12.0.0-canary.08d791f37.0",
136+
"@material/tab": "12.0.0-canary.08d791f37.0",
137+
"@material/tab-bar": "12.0.0-canary.08d791f37.0",
138+
"@material/tab-indicator": "12.0.0-canary.08d791f37.0",
139+
"@material/tab-scroller": "12.0.0-canary.08d791f37.0",
140+
"@material/textfield": "12.0.0-canary.08d791f37.0",
141+
"@material/theme": "12.0.0-canary.08d791f37.0",
142+
"@material/tooltip": "12.0.0-canary.08d791f37.0",
143+
"@material/top-app-bar": "12.0.0-canary.08d791f37.0",
144+
"@material/touch-target": "12.0.0-canary.08d791f37.0",
145+
"@material/typography": "12.0.0-canary.08d791f37.0",
146146
"@octokit/rest": "18.3.5",
147147
"@rollup/plugin-babel": "^5.3.0",
148148
"@rollup/plugin-commonjs": "^18.0.0",

packages.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# all in-sync. This map is passed to each ng_package rule to stamp out the appropriate
33
# version for the placeholders.
44
ANGULAR_PACKAGE_VERSION = "^12.0.0 || ^13.0.0-0"
5-
MDC_PACKAGE_VERSION = "12.0.0-canary.2952c6a76.0"
5+
MDC_PACKAGE_VERSION = "12.0.0-canary.08d791f37.0"
66
TSLIB_PACKAGE_VERSION = "^2.2.0"
77
RXJS_PACKAGE_VERSION = "^6.5.3"
88

src/material-experimental/mdc-button/_button-base.scss

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,5 @@
7373
@include mdc-touch-target.touch-target(
7474
$set-width: $is-square,
7575
$query: mdc-helpers.$mat-base-styles-query);
76-
77-
@if ($is-square) {
78-
[dir='rtl'] & {
79-
left: auto;
80-
right: 50%;
81-
transform: translate(50%, -50%);
82-
}
83-
}
8476
}
8577
}

src/material-experimental/mdc-checkbox/checkbox.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,4 @@
9292
@include mdc-touch-target.touch-target(
9393
$set-width: true,
9494
$query: mdc-helpers.$mat-base-styles-query);
95-
96-
[dir='rtl'] & {
97-
left: 0;
98-
right: 50%;
99-
transform: translate(50%, -50%);
100-
}
10195
}

0 commit comments

Comments
 (0)