mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-10-04 10:43:46 +10:00
fix(ui): let callers name an icon's slot again
This commit is contained in:
@@ -29,9 +29,9 @@ function Icon({ name, filled = false, size = 20, className, style, ...props }: I
|
||||
<span
|
||||
aria-hidden="true"
|
||||
translate="no"
|
||||
data-slot="icon"
|
||||
{...props}
|
||||
// After the props: `data-icon` is the glyph, so a stray one never blanks it.
|
||||
data-slot="icon"
|
||||
data-icon={name}
|
||||
className={cn("material-symbol", DIRECTIONAL_ICONS.has(name) && "rtl:-scale-x-100", className)}
|
||||
style={{
|
||||
|
||||
Reference in New Issue
Block a user