fix: todo list item color when item is checked and custom color is applied#6113
fix: todo list item color when item is checked and custom color is applied#6113
Conversation
WalkthroughThe changes involve modifications to the CSS styles for the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
packages/editor/src/styles/editor.css (1)
193-201: Consider consolidating transition declarationsThe implementation correctly addresses the color muting for checked items. However, there's a minor opportunity for improvement in the transition declarations.
Consider this small refinement to avoid repeating the transition property:
ul[data-type="taskList"] li[data-checked="true"] { & > div > p { color: rgb(var(--color-text-400)); } [data-text-color] { opacity: 0.6; - transition: opacity 0.2s ease; } }The transition is already defined in the base styles (line 189), so it doesn't need to be repeated here. This makes the code more maintainable as the transition timing only needs to be updated in one place.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
packages/editor/src/styles/editor.css(1 hunks)
🔇 Additional comments (2)
packages/editor/src/styles/editor.css (2)
182-190: LGTM: Well-structured transitions for task list items
The addition of smooth transitions for both color and opacity changes will provide better visual feedback when toggling task list items.
182-201: Implementation successfully addresses the PR objective
The changes effectively solve the reported issue by:
- Properly muting custom colored text when items are checked
- Maintaining visual consistency with regular text items
- Providing smooth transitions for better user experience
The implementation is clean, maintainable, and follows CSS best practices.
Bug fix:
When a todo list item contains some characters with custom color applied, checking the item doesn't mute that color.
Media:
Screen.Recording.2024-11-28.at.16.28.32.mov
Screen.Recording.2024-11-28.at.16.22.57.mov
Summary by CodeRabbit
New Features
Bug Fixes
Style