Skip to content

Commit 11496d6

Browse files
committed
fix(svelte): fix missing touch ripple on links
1 parent a35ee43 commit 11496d6

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

src/config/md-colors.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ function matrixMultiply(row, matrix) {
122122
* See the License for the specific language governing permissions and
123123
* limitations under the License.
124124
*/
125+
// This file is automatically generated. Do not modify it.
125126
/**
126127
* Color science utilities.
127128
*
@@ -699,6 +700,7 @@ class Cam16 {
699700
* See the License for the specific language governing permissions and
700701
* limitations under the License.
701702
*/
703+
// This file is automatically generated. Do not modify it.
702704
// material_color_utilities is designed to have a consistent API across
703705
// platforms and modular components that can be moved around easily. Using a
704706
// class as a namespace facilitates this.
@@ -1209,6 +1211,21 @@ HctSolver.CRITICAL_PLANES = [
12091211
* See the License for the specific language governing permissions and
12101212
* limitations under the License.
12111213
*/
1214+
/**
1215+
* A color system built using CAM16 hue and chroma, and L* from
1216+
* L*a*b*.
1217+
*
1218+
* Using L* creates a link between the color system, contrast, and thus
1219+
* accessibility. Contrast ratio depends on relative luminance, or Y in the XYZ
1220+
* color space. L*, or perceptual luminance can be calculated from Y.
1221+
*
1222+
* Unlike Y, L* is linear to human perception, allowing trivial creation of
1223+
* accurate color tones.
1224+
*
1225+
* Unlike contrast ratio, measuring contrast in L* is linear, and simple to
1226+
* calculate. A difference of 40 in HCT tone guarantees a contrast ratio >= 3.0,
1227+
* and a difference of 50 guarantees a contrast ratio >= 4.5.
1228+
*/
12121229
/**
12131230
* HCT, hue, chroma, and tone. A color system that provides a perceptually
12141231
* accurate color measurement system that can also accurately render what colors
@@ -1299,6 +1316,7 @@ class Hct {
12991316
* See the License for the specific language governing permissions and
13001317
* limitations under the License.
13011318
*/
1319+
// This file is automatically generated. Do not modify it.
13021320
// material_color_utilities is designed to have a consistent API across
13031321
// platforms and modular components that can be moved around easily. Using a
13041322
// class as a namespace facilitates this.
@@ -1534,6 +1552,7 @@ class CorePalette {
15341552
* See the License for the specific language governing permissions and
15351553
* limitations under the License.
15361554
*/
1555+
// This file is automatically generated. Do not modify it.
15371556
/**
15381557
* Represents a Material color scheme, a mapping of color roles to colors.
15391558
*/

src/svelte/components/Link.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
export let tabbar = false;
2727
export let tabbarActive = false;
2828
29-
export let touchRipple = false;
29+
export let touchRipple = undefined;
3030
3131
export let onClick = undefined;
3232
@@ -42,7 +42,7 @@
4242
(touchRipple ||
4343
(typeof touchRipple === 'undefined' && (toolbar || tabbar || navbar)));
4444
45-
$: useTouchRipple(rippleEl, needsTouchRipple);
45+
$: useTouchRipple(rippleEl, toolbar || tabbar || navbar);
4646
4747
$: colors = LinkColors(colorsProp, dark);
4848

0 commit comments

Comments
 (0)