-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(material/icon): mat-icon misaligned when text-spacing is applied #29686
base: main
Are you sure you want to change the base?
Commits on Nov 20, 2024
-
fix(material/icon): mat-icon misaligned when text-spacing is applied
Fixes an issue with Angular Components Material Icon component where when text-spacing is applied the icon gets misaligned and if inside of an input or container with an outline, the icon gets cut off. This fix adds css styling to keep the icon middle-aligned when text-spacing is applied. Fixes b/250063405
Configuration menu - View commit details
-
Copy full SHA for 6680bd5 - Browse repository at this point
Copy the full SHA 6680bd5View commit details -
fix(material/icon): changes overflow to visible for button icon
Updates styles for Angular Material Icon so when the icon is within a button it sets the overflow to visible to avoid the icon from being cutoff. Also updates the line-height to 1 set Fixes b/250063405
Configuration menu - View commit details
-
Copy full SHA for b70c2c3 - Browse repository at this point
Copy the full SHA b70c2c3View commit details -
refactor(material/icon): moves styles to bottom of scss file
Updates previous fix to move added styles to bottom of scss file for overriding. Fixes b/250063405
Configuration menu - View commit details
-
Copy full SHA for a8181ca - Browse repository at this point
Copy the full SHA a8181caView commit details -
fix(material/icon): updates to include .mat-icon variants
Updates classes to target .mat-icon usage in other Angular Material Components (ie. list-item, list-option, grid-tile, form-field, tab, toolbar, and tooltip). Fixes b/250063405
Configuration menu - View commit details
-
Copy full SHA for ccc4e36 - Browse repository at this point
Copy the full SHA ccc4e36View commit details -
fix(material/icon): added styling for icon to ignore text-spacing
Updates previous fix to target instances where its parent element has or applied to it and to override any , , or changes to the so it should stay the same. Fixes b/250063405
Configuration menu - View commit details
-
Copy full SHA for 4bbc5a9 - Browse repository at this point
Copy the full SHA 4bbc5a9View commit details -
refactor(material/icon): fixed lint errors
Updates previous fix to Angular Material Icon component to abide by the lint formatting. Fixes b/250063405
Configuration menu - View commit details
-
Copy full SHA for ffe3df3 - Browse repository at this point
Copy the full SHA ffe3df3View commit details -
refactor(material/icon): consolidate styles to ignore text-spacing
Updates previous change to consolidate the important styles that were added to ignore any externally placed text-spacing styles be added to be targeted by all .mat-icon situations. Fixes b/250063405
Configuration menu - View commit details
-
Copy full SHA for 885f117 - Browse repository at this point
Copy the full SHA 885f117View commit details -
refactor(material/icon): removes important and inline styles
Updates previous fix to remove the inline targets and the usage of forced usage of styles as it is on the app to remove any overriding styles. Fixes b/250063405 BREAKING CHANGE: removes use of forced styles Updates the previous fix which uses "important" and removes it as any overrides should be fixed by the app mat-icon is used in instead.
Configuration menu - View commit details
-
Copy full SHA for 3566c44 - Browse repository at this point
Copy the full SHA 3566c44View commit details -
fix(material/icon): hides .mdc-button .mat-icon on mobile screens
Updates previous fix by updating documentation on the usage of mat-icon within mdc-button to notify developers that mat-icon is set to be hidden on mobile/xsmall screens to improve accessibility and recommends the usage of aria-label or aria-labelledby to notify screenreaders of the information that mat-icon is supposed to convey. Fixes b/250063405
Configuration menu - View commit details
-
Copy full SHA for 117af69 - Browse repository at this point
Copy the full SHA 117af69View commit details -
refactor(material/icon): simplifies icon style changes
Updates previous changes to icon.scss to remove unnecessary specificity targeting and just moves classes to be generalized under .mat-icon. Adds min-height and min-width to .mdc-button so that when buttons (with icons especially) do not allow its content to overflow outside of the button and maintaining its accessibility by not allowing overlapping of text/content. Fixes b/250063405
Configuration menu - View commit details
-
Copy full SHA for 065b025 - Browse repository at this point
Copy the full SHA 065b025View commit details -
refactor(material/icon): provides context for undoing previous fix
Updates notation to style change in icon.scss which undoes a previous bug fix for GH issue angular#11826. As this change is now deemed as an accessibility issue due to it being cut off/hidden. Fixes b/250063405 BREAKING CHANGE: undoes hiding icon overflow Reverts icon having its overflow visible to be more accessible.
Configuration menu - View commit details
-
Copy full SHA for feb69bf - Browse repository at this point
Copy the full SHA feb69bfView commit details -
refactor(material/icon): changes method of making icon visible with t…
…ext-spacing Updates previous fix to revert removal of overflow: hidden to remove the breaking change and updates the method of ensuring .mat-icon remains visible by applying flex-shrink to it so the icon does not get cut off and improves accessibility. Fixes b/250063405
Configuration menu - View commit details
-
Copy full SHA for a61c8b7 - Browse repository at this point
Copy the full SHA a61c8b7View commit details -
refactor(material/icon): fix formatting
Updates previous change to fix formatting for lint errors.
Configuration menu - View commit details
-
Copy full SHA for 7a2a1e1 - Browse repository at this point
Copy the full SHA 7a2a1e1View commit details -
refactor(material/icon): update height to min-height .mat-icon
Updates previous fix to change .mat-mdc-button-base .mat-icon from height: min-content to min-height: min-content to avoid overriding the default .mat-icon height: 24px. This way it defaults to min-content if the height becomes smaller than the 24px. Fixes b/250063405
Configuration menu - View commit details
-
Copy full SHA for 6eedec6 - Browse repository at this point
Copy the full SHA 6eedec6View commit details