@firestitch/style 18.4.4 → 18.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/styles/material.scss +30 -0
package/package.json
CHANGED
package/styles/material.scss
CHANGED
|
@@ -74,6 +74,36 @@
|
|
|
74
74
|
|
|
75
75
|
--mat-button-text-container-shape: #{$button-shape};
|
|
76
76
|
|
|
77
|
+
// NO TOUCH TARGETS, ON ANY CONTROL.
|
|
78
|
+
//
|
|
79
|
+
// Material hangs an invisible 48px hit area, centred, on every button, icon
|
|
80
|
+
// button, fab, checkbox, radio, slide toggle and paginator select, and only
|
|
81
|
+
// drops it below density -1. At -1 an icon button is 44px, so the target
|
|
82
|
+
// sticks out 2px on each side, and any scroll container it sits at the edge
|
|
83
|
+
// of grows a scrollbar for it. Angular 20 renamed the button tokens, so the
|
|
84
|
+
// `--mat-text-button-*` names above stopped reaching anything and the
|
|
85
|
+
// targets came back; icon buttons and the selection controls were never
|
|
86
|
+
// covered at all. These are the Angular 20 names.
|
|
87
|
+
--mat-button-text-touch-target-display: none;
|
|
88
|
+
--mat-button-filled-touch-target-display: none;
|
|
89
|
+
--mat-button-outlined-touch-target-display: none;
|
|
90
|
+
--mat-button-protected-touch-target-display: none;
|
|
91
|
+
--mat-button-tonal-touch-target-display: none;
|
|
92
|
+
--mat-icon-button-touch-target-display: none;
|
|
93
|
+
--mat-fab-touch-target-display: none;
|
|
94
|
+
--mat-fab-small-touch-target-display: none;
|
|
95
|
+
--mat-checkbox-touch-target-display: none;
|
|
96
|
+
--mat-radio-touch-target-display: none;
|
|
97
|
+
--mat-slide-toggle-touch-target-display: none;
|
|
98
|
+
--mat-paginator-touch-target-display: none;
|
|
99
|
+
|
|
100
|
+
// Material re-declares the radio's on a list item's leading and trailing
|
|
101
|
+
// slots (a radio list option), which beats the :root value above.
|
|
102
|
+
.mdc-list-item__start,
|
|
103
|
+
.mdc-list-item__end {
|
|
104
|
+
--mat-radio-touch-target-display: none;
|
|
105
|
+
}
|
|
106
|
+
|
|
77
107
|
.mat-mdc-slide-toggle {
|
|
78
108
|
--mat-switch-with-icon-handle-size: 20px;
|
|
79
109
|
--mdc-switch-handle-shape: 9999px;
|