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

[Search] 外部样式类t-class-clear无法改变图标大小 #3234

Closed
desmondboom opened this issue Oct 29, 2024 · 5 comments · Fixed by #3238
Closed

[Search] 外部样式类t-class-clear无法改变图标大小 #3234

desmondboom opened this issue Oct 29, 2024 · 5 comments · Fixed by #3238

Comments

@desmondboom
Copy link

tdesign-miniprogram 版本

1.7.0

重现链接

t-class-clear="icon"

重现步骤

t-class-clear 无法实现font-size的样式覆盖

期望结果

No response

实际结果

No response

基础库版本

No response

补充说明

No response

Copy link
Contributor

👋 @desmondboom,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@desmondboom
Copy link
Author

    <view
      wx:if="{{value !=='' && clearable}}"
      class="{{classPrefix}}__clear {{prefix}}-class-clear"
      catch:tap="handleClear"
      aria-role="button"
      aria-label="清除"
    >
      <t-icon name="close-circle-filled" size="48rpx" />
    </view>

这里的{{prefix}}-class-clear是不是应该直接给 t-icon?像是前置icon一样保持一致?

@anlyyao anlyyao changed the title [组件名称] 描述问题的标题 [Search] 外部样式类t-class-clear无法改变图标大小 Oct 29, 2024
@desmondboom
Copy link
Author

@anlyyao thanks for changing the title.

@anlyyao
Copy link
Collaborator

anlyyao commented Oct 29, 2024

    <view
      wx:if="{{value !=='' && clearable}}"
      class="{{classPrefix}}__clear {{prefix}}-class-clear"
      catch:tap="handleClear"
      aria-role="button"
      aria-label="清除"
    >
      <t-icon name="close-circle-filled" size="48rpx" />
    </view>

这里的{{prefix}}-class-clear是不是应该直接给 t-icon?像是前置icon一样保持一致?

或者 icon 的 size 和 color 属性用 inherit

@desmondboom
Copy link
Author

@anlyyao @jarmywang 👍 Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants