You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(icon): add stripMeta option to registerIcon and registerIconFromText (#2286)
Adds a RegisterIconOptions object accepted as the third argument of both
registration functions (backward-compatible with the existing string form).
When stripMeta is true, the parser removes <title> and <desc> from the
stored SVG, preventing browser-native tooltips on hover, and cleans up any
aria-labelledby/aria-describedby references on the root <svg> that pointed
to the stripped elements' IDs. The title text is still captured into
SvgIcon.title so the host <igc-icon> continues to expose it as aria-label.
Closes#1822
---------
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Radoslav Karaivanov <rkaraivanov@infragistics.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [Keep a Changelog](http://keepachangelog.com/)
5
5
and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
7
+
## [Unreleased]
8
+
### Added
9
+
-#### Icon
10
+
-`registerIcon` and `registerIconFromText` now accept a `RegisterIconOptions` object as their third argument in addition to the existing plain collection string. Setting `stripMeta: true` removes `<title>` and `<desc>` elements from the stored SVG, preventing the browser from displaying a native tooltip on hover. The title text is still captured and exposed as the `aria-label` of the host `<igc-icon>` element. Any `aria-labelledby` / `aria-describedby` references on the root `<svg>` that pointed to the stripped elements' IDs are cleaned up automatically. [#1822](https://github.com/IgniteUI/igniteui-webcomponents/issues/1822)
11
+
7
12
## [7.2.4] - 2026-06-29
8
13
### Added
9
14
-#### Form associated custom elements with external labels
0 commit comments