Closed soulcramer closed 4 days ago
I don't know what happened here ๐ค , I only rebased from main and run spotless
@coderabbitai review
@coderabbitai summary
The update focuses on refining the styling and structure of dropdown elements across various components within the catalog application. Major changes involve introducing new imports, refactoring dropdown examples into composable functions, and modifying text field behavior. These enhancements aim to streamline dropdown functionalities, improve the user interface, and align with design standards.
Files/Directories | Change Summary |
---|---|
ComboBoxConfigurator.kt |
Imported highlight and updated text style from fontWeight = FontWeight.Bold to highlight . |
DropdownsConfigurator.kt |
Added imports for dropdowns, immutable collections, and provided new data class and sample data for dropdown groups. |
DropdownExamples.kt |
Introduced new composable functions for single and multi-selection dropdowns, and custom items dropdown, along with necessary imports. |
MaterialComposableUsageDetector.kt |
Reformatted class definition and adjusted mapping for progress indicators to Spark replacements. |
DropdownMenu.kt |
Added import for FontStyle and modified SectionHeadline function to set font style to italic. |
AddonScope.kt |
Removed certain imports and reorganized the TextFieldWithDropdownPreview function by removing the Box wrapper. |
Dropdown.kt |
Adjusted modifier usage in SelectTextField , added a conditional check in Dropdown to prevent menu expansion when the TextField is disabled. |
N/A
Objective | Addressed | Explanation |
---|---|---|
Add remaining examples for dropdown component (#1163) | โ |
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?
@spark-ui-bot spotless
@spark-ui-bot paparazzi
@spark-ui-bot spotless
๐ Changes
Add Custom items examples and improve the configurator to actually represent the selection when an item is tapped. Also fix the Dropdown showing the menu while the Textfield is not enabled.
๐ค Context
Close #1163
โ Checklist
spark-design
GitHub team.๐๏ธ Other info
A11y need some fixes in the examples
Summary by CodeRabbit
New Features
DropdownMenuGroupItem
component for dropdown groups.Enhancements
Bug Fixes
Refactor