-
Notifications
You must be signed in to change notification settings - Fork 77
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: task card styling update #15068
base: main
Are you sure you want to change the base?
Conversation
📝 WalkthroughWalkthroughThis pull request updates styling details across legacy and task components. It increases the padding in a legacy icon card, modifies the border styling—including the removal of rounded corners—in a task card, and adjusts the heading size in the task card component. No changes are made to exported entities. Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 ESLint
frontend/libs/studio-components-legacy/src/components/StudioIconCard/StudioIconCard.module.cssOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't find the plugin "eslint-plugin-storybook". (The package "eslint-plugin-storybook" was not found when loaded as a Node module from the directory "/frontend/libs/studio-components-legacy".) It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:
The plugin "eslint-plugin-storybook" was referenced from the config file in "frontend/libs/studio-components-legacy/.eslintrc.js". If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (3)
⏰ Context from checks skipped due to timeout of 90000ms (3)
🪧 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (2)
frontend/libs/studio-components-legacy/src/components/StudioIconCard/StudioIconCard.module.css (1)
28-29
: Increased Padding for Enhanced SpacingThe updated padding values (using
var(--fds-spacing-6)
for overall padding andvar(--fds-spacing-7)
for the bottom) correctly increase the spacing inside the card content as per the design update. Please verify that these new spacing values align with the overall design system.frontend/packages/ux-editor/src/components/TaskNavigation/TaskCard.module.css (1)
19-21
: Revised Border Styling for Edit ModeThe
.editcard
class now uses a dynamic border declaration:border: var(--fds-border_width-active) var(--fds-semantic-border-first-active) solid;
This change removes the rounded corners as required and applies a dynamic border width. For clarity and conventionality, consider reordering the border shorthand properties to the typical order (width, style, color). For example:
- border: var(--fds-border_width-active) var(--fds-semantic-border-first-active) solid; + border: var(--fds-border_width-active) solid var(--fds-semantic-border-first-active);This makes it clearer that
solid
is the border style and ensures better readability.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
frontend/libs/studio-components-legacy/src/components/StudioIconCard/StudioIconCard.module.css
(1 hunks)frontend/packages/ux-editor/src/components/TaskNavigation/TaskCard.module.css
(1 hunks)frontend/packages/ux-editor/src/components/TaskNavigation/TaskCard.tsx
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (2)
- GitHub Check: Build environment and run e2e test
- GitHub Check: Testing
🔇 Additional comments (1)
frontend/packages/ux-editor/src/components/TaskNavigation/TaskCard.tsx (1)
88-90
: Updated Heading Size to 'xs'The heading for displaying
layoutSetModel.id
has been updated to usesize='xs'
, which provides a subtler visual weight as intended. Ensure that this change maintains the desired visual hierarchy within the task card, especially in contrast to the surroundingStudioParagraph
elements.
2bd8d15
to
6a1bc38
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #15068 +/- ##
=======================================
Coverage 95.92% 95.92%
=======================================
Files 1989 1989
Lines 25819 25819
Branches 2916 2916
=======================================
Hits 24767 24767
Misses 788 788
Partials 264 264 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
xs
Before
Related Issue(s)
Verification
Documentation
Summary by CodeRabbit