feat: add call() method to design system styles - #30
Merged
Conversation
Add call() methods to RemixCheckboxStyle, RemixSliderStyle, RemixSwitchStyle, and RemixTextFieldStyle to enable direct widget instantiation from styles. This provides a consistent design system interface where all callable styles can be used with method chaining followed by call() for widget creation. Includes comprehensive tests for all new call() methods.
|
To view this pull requests documentation preview, visit the following URL: Documentation is deployed and generated using docs.page. |
Update doc examples to demonstrate assigning styles to final variables then calling them like functions, which better reflects design system usage patterns.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add
call()methods to four core style classes (RemixCheckboxStyle, RemixSliderStyle, RemixSwitchStyle, RemixTextFieldStyle) to enable direct widget instantiation. This allows styles to be used with method chaining followed bycall()for widget creation, providing a consistent design system interface across all callable components.Related Issues
This continues the design system callable pattern already established in RemixButtonStyle, RemixIconButtonStyle, and RemixSpinnerStyle.
Checklist
///).Breaking Change