Correct height of BitDropdown elements (#12104)#12114
Correct height of BitDropdown elements (#12104)#12114msynk merged 2 commits intobitfoundation:developfrom
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
WalkthroughThe BitDropdown component receives styling updates to address height inconsistency with BitNumberField. A flex container layout is introduced to the dropdown root, label and wrapper elements receive adjusted styling for consistent vertical spacing, and minor whitespace normalization occurs in ARIA attributes. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
src/BlazorUI/Bit.BlazorUI/Components/Inputs/Dropdown/BitDropdown.scss (1)
695-704: Inconsistent indentation on top-level.bit-drp-itm[disabled]selector.
.bit-drp-itmcloses at line 693. The.bit-drp-itm[disabled]block that follows is a top-level selector in SCSS (braces, not indentation, define nesting), yet it carries 4 spaces of leading indentation — unlike every other top-level rule in the file. It compiles correctly, but the indentation visually implies nesting inside.bit-drp-itm.♻️ Proposed cleanup
-. .bit-drp-itm[disabled] { - cursor: default; - color: $clr-fg-dis; - - `@media` (hover: hover) { - &:hover { - background-color: transparent; - } - } - } +.bit-drp-itm[disabled] { + cursor: default; + color: $clr-fg-dis; + + `@media` (hover: hover) { + &:hover { + background-color: transparent; + } + } +}🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/BlazorUI/Bit.BlazorUI/Components/Inputs/Dropdown/BitDropdown.scss` around lines 695 - 704, The `.bit-drp-itm[disabled]` selector block is indented as if nested even though it is a top-level SCSS rule; fix by removing the leading 4-space indent so the `.bit-drp-itm[disabled] { ... }` block aligns with other top-level rules (preserve the existing braces, properties, and the nested `@media (hover: hover) { &:hover { ... } }` structure inside the block).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/BlazorUI/Bit.BlazorUI/Components/Inputs/Dropdown/BitDropdown.scss`:
- Line 135: Update the .bit-drp-wrp rule in BitDropdown.scss to use min-height
instead of a fixed height so the wrapper can grow when chips wrap in
multi-select mode; locate the .bit-drp-wrp selector and replace height:
spacing(4) with min-height: spacing(4) to keep the 32px baseline while allowing
expansion for wrapped .bit-drp-tcn/.bit-drp-sch chip rows.
---
Nitpick comments:
In `@src/BlazorUI/Bit.BlazorUI/Components/Inputs/Dropdown/BitDropdown.scss`:
- Around line 695-704: The `.bit-drp-itm[disabled]` selector block is indented
as if nested even though it is a top-level SCSS rule; fix by removing the
leading 4-space indent so the `.bit-drp-itm[disabled] { ... }` block aligns with
other top-level rules (preserve the existing braces, properties, and the nested
`@media (hover: hover) { &:hover { ... } }` structure inside the block).
closes #12104
Summary by CodeRabbit