This repository was archived by the owner on Sep 5, 2024. It is now read-only.
Commit 693ecca
committed
fix(tabs): update min-width to follow the spec
- previous commits removed use of `getMinTabWidth` but never updated the related CSS
- this applies the proper `min-width` CSS to match the spec
- which is `72px` on `xs` and `160px` on everything else
- this also changes the left and right padding from `24px` to `12px` to align with the spec
Relates to #10406. Relates to #11432.
BREAKING CHANGE: Tab items now have a `min-width` and `padding` which matches the Material Design specification. For width, this is `72px` on `xs` screens and `160px` on all other screens. For left and right `padding`, this is now `12px` instead of `24px`. If your app needs to have tabs which are smaller than the spec, you will need to override `md-tab-item`'s `min-width` and `md-tab`'s `padding` styles.1 parent 29c0a4a commit 693ecca
1 file changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
175 | 183 | | |
176 | 184 | | |
177 | 185 | | |
| |||
259 | 267 | | |
260 | 268 | | |
261 | 269 | | |
262 | | - | |
| 270 | + | |
263 | 271 | | |
264 | 272 | | |
265 | 273 | | |
| |||
0 commit comments