Skip to content
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

图标组件是否需要增加 hover 相关属性的支持 #295

Open
loveDstyle opened this issue Jul 23, 2021 · 4 comments
Open

图标组件是否需要增加 hover 相关属性的支持 #295

loveDstyle opened this issue Jul 23, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@loveDstyle
Copy link
Collaborator

目前图标npm包提供的组件代码,没有直接与hover相关的属性,在有hover - 变色 相关诉求时可借助外部css样式实现(个人感觉成本也可以接受?),像这样:
image

codepen

IconPark 网站中生成的项目 web component 代码也类似。

想发起个讨论看有什么别的hover相关场景,是目前需要比较费力才可以实现的,以及如果需要增加 hover 相关属性的话,期望的api 设计是怎样

@loveDstyle loveDstyle added the enhancement New feature or request label Jul 23, 2021
@loveDstyle loveDstyle pinned this issue Jul 23, 2021
@StringKe
Copy link

StringKe commented Aug 3, 2021

默认项目 fill 就是 css variables 且可以全局配置,这样就可以快速接入当前 UI Framework 了。

@xiazhaohui
Copy link

反人类设计,太麻烦了

@IceSakuraAzure
Copy link

这么做太反人类了 如果页面使用了多个图标 那就得绑定一大堆css变量

@Augest37
Copy link

Augest37 commented Sep 1, 2023

有需要的话可以自己用组件包装一下就好了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants