Skip to content

IBX-10158: Form label component#1

Merged
dew326 merged 4 commits intomainfrom
IBX-10158
Jun 30, 2025
Merged

IBX-10158: Form label component#1
dew326 merged 4 commits intomainfrom
IBX-10158

Conversation

@GrabowskiM
Copy link
Copy Markdown
Contributor

@GrabowskiM GrabowskiM commented Jun 12, 2025

@GrabowskiM GrabowskiM marked this pull request as draft June 12, 2025 11:16
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request introduces and updates a set of design system components including label, input, icon, helper text, expander, button, and accordion to improve styling and consistency.

  • Introduces a new label component with dynamic attributes and classes.
  • Adds input, icon, and helper text components that utilize helper macros for class and attribute management.
  • Updates the expander, button, and accordion components for improved class generation and syntax consistency.

Reviewed Changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/bundle/Resources/views/themes/standard/design_system/components/label.html.twig New label component using merged attributes for error and required states.
src/bundle/Resources/views/themes/standard/design_system/components/input_text.html.twig New input component with dynamic class generation and attribute merging.
src/bundle/Resources/views/themes/standard/design_system/components/icon.html.twig Updated icon component with syntax adjustments for variant key definitions.
src/bundle/Resources/views/themes/standard/design_system/components/helper_text.html.twig New helper text component that includes icon rendering via an imported macro.
src/bundle/Resources/views/themes/standard/design_system/components/expander.html.twig Updated expander component with improved class generation patterns.
src/bundle/Resources/views/themes/standard/design_system/components/button.html.twig Updated button component with standardized class assignment and formatting.
src/bundle/Resources/views/themes/standard/design_system/components/accordion.html.twig Updated accordion component with refined class management based on expansion state.
Comments suppressed due to low confidence (1)

src/bundle/Resources/views/themes/standard/design_system/components/label.html.twig:21

  • [nitpick] Consider using the standard 'for' attribute for the label element instead of 'html-for', unless this abstraction is intentional for integrating with framework-specific APIs.
        'html-for': html_for,

{
type
},
classes
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to have here direct reference as this will be less confusing and less error prone.

Suggested change
classes
attr.class|default('')

@dew326 dew326 merged commit bab37de into main Jun 30, 2025
0 of 5 checks passed
@dew326 dew326 deleted the IBX-10158 branch June 30, 2025 07:52
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.

6 participants