From 97aa7b278f51c23e18fd6b53cf9160e21239e8d0 Mon Sep 17 00:00:00 2001 From: Joy Serquina Date: Mon, 8 Jul 2024 23:06:39 +0000 Subject: [PATCH] refactor(material/chips): replace px with _trailing-icon-size variable Updates previous Angular Components Chip component fix and makes it adaptable by swapping the hard-coded 18px offset to equal the variable for -icon-size. --- src/material/chips/chip.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/material/chips/chip.scss b/src/material/chips/chip.scss index 673848e01f1a..87a0ff384b19 100644 --- a/src/material/chips/chip.scss +++ b/src/material/chips/chip.scss @@ -695,7 +695,7 @@ $_avatar-trailing-padding: 8px; // Used as a state overlay. &::after { - $offset: 18px; // size of the remove icon + $offset: $_trailing-icon-size; // size of the remove icon content: ''; display: block; opacity: 0;