-
Notifications
You must be signed in to change notification settings - Fork 10
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(Picker): fix group headers' height and equalise padding #1453
Conversation
Group headers can now stretch vertically, allowing for more than one line to be displayed in a clear way without overflowing the background
WalkthroughThe pull request includes styling updates to the Changes
Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (1)
🔇 Additional comments (2)packages/react-components/src/components/Picker/components/PickerListItem.module.scss (2)
The change from uneven padding (
Changing from fixed height to Let's verify the visual impact: ✅ Verification successfulLet me check the specific context of the PickerListItem height change by looking at related files. Height change is safe and improves flexibility The change from fixed height to 100% in PickerListItem is correct and won't conflict with other components. The parent PickerList only enforces height on the "no-results" state (36px), while list items are designed to be flexible with padding and content. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Check for any hardcoded heights that might conflict
rg -g '*.scss' -g '*.css' --no-heading "height:\s*36px"
Length of output: 1924 Script: #!/bin/bash
# Check PickerList and PickerListItem files for height-related styles
cat packages/react-components/src/components/Picker/components/PickerList.module.scss
cat packages/react-components/src/components/Picker/components/PickerListItem.module.scss
Length of output: 4097 🪧 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 (
|
Group headers can now stretch vertically, allowing for more than one line to be displayed in a clear way without overflowing the background
Description
Group headers now don't have a limited height, allowing them to stretch to fit the passed
name
.Adds a longer group header to the Picker story, makes the group headers' padding equal on top and bottom.
Storybook
https://feature-picker-responsive-group-headers--613a8e945a5665003a05113b.chromatic.com
Checklist
Obligatory:
Summary by CodeRabbit
New Features
Style