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

fix: rate__tips--bottom z-index #1837

Merged
merged 2 commits into from
Jul 23, 2024
Merged

Conversation

liweijie0812
Copy link
Collaborator

@liweijie0812 liweijie0812 commented Jul 17, 2024

🤔 这个 PR 的性质是?

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

💡 需求背景和解决方案

之前
image
之后
image

📝 更新日志

  • fix(组件名称): 处理问题或特性描述 ...

  • 本条 PR 不需要纳入 Changelog

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

@anlyyao
Copy link
Collaborator

anlyyao commented Jul 23, 2024

有意思的表现,向上没有遮挡,向下有遮挡!!!

向上没有遮挡,可能和浏览器渲染顺序有关,浏览器在渲染页面时,会按照代码中元素的顺序进行渲染。所以z-index相同的情况下,位于后面的元素会覆盖在前面的元素上。

向下遮挡,可能是绝对定位脱离文档流,实际没有占据空间,下一个 rate 组件紧挨当前 rate 组件,导致当前rate被遮挡

@anlyyao anlyyao merged commit e7f4fbf into Tencent:develop Jul 23, 2024
7 checks passed
@liweijie0812 liweijie0812 deleted the fix/rate branch July 23, 2024 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants