Skip to content

Conversation

@navidshad
Copy link
Contributor

@navidshad navidshad commented Nov 16, 2025

🏷️ PR Title: Enhance Select Component with Custom Selected Display Slot and Improve Disabled State Handling

πŸ“‹ Summary

This PR introduces a custom selected display slot to the Select component, allowing greater flexibility in how selected options are rendered. Additionally, it refactors the Input, Button, and Select components to improve the handling of their disabled states. The Storybook development guidelines have also been updated to enforce consistency between Args and Props across components.

πŸ”— Related Tasks

#86eunvbgj - Update Input, Button, and Select components to improve disabled state handling

πŸ“ Additional Details

  • Added a new slot for the Select component to customize the display of the selected option.
  • Refactored disabled state logic to ensure consistent and reliable behavior across multiple form components.
  • Updated Storybook documentation to align with the Args-to-Props consistency enforcement, improving developer experience and component maintainability.

πŸ“œ Commit List

5fbb480 docs: Update Storybook Development Guidelines to enforce Args-to-Props consistency
79d98b7 feat: Add custom selected display slot to Select component
6e6acd2 refactor: #86eunvbgj Update Input, Button, and Select components to improve disabled state handling

…mprove disabled state handling

- Enhanced Input, Button, and Select components to manage disabled states based on InputGroup context, allowing for more flexible and consistent behavior.
- Updated the logic for determining the disabled state to prioritize child component settings over InputGroup settings.
- Adjusted related tests to reflect changes in how disabled states are applied and verified across components.
- Introduced a new `selected` slot in the Select component to allow customization of how selected options are displayed in the trigger button.
- Updated the Select component to handle both single and multiple selection modes, providing scoped variables for selected options.
- Enhanced Storybook examples to demonstrate the new functionality, including custom display for selected items and handling of multiple selections.
- Refactored related rendering logic to support the new slot and improve overall component behavior.
…s consistency

- Added guidelines to ensure all story args are passed to components via props using `v-bind="args"`.
- Emphasized the importance of not hardcoding props in templates and ensuring all component props are controllable through Storybook controls.
- Included examples for correct and incorrect usage of props in templates to enhance clarity and adherence to best practices.
@navidshad
Copy link
Contributor Author

@navidshad navidshad merged commit c7e5376 into dev Nov 16, 2025
3 checks passed
@github-actions
Copy link

πŸŽ‰ This PR is included in version 1.17.0-dev.38 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

@github-actions
Copy link

πŸŽ‰ This PR is included in version 1.28.0 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants