-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Follow ups from add unmatched parameters support to our built-in components #10713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
area-blazor
Includes: Blazor, Razor Components
Done
This issue has been fixed
enhancement
This issue represents an ask for new feature or an enhancement to an existing one
Milestone
Comments
Note: this sounds like code cleanup, but it's not purely that. We have to make a decision about the API surface and direction for built-in components. |
See Steve's comments here: #10712 (comment) |
rynowak
pushed a commit
that referenced
this issue
Jun 25, 2019
Part of #10713 This change addresses the cleanup of the form components by removing the Id and Class parameters as explicit parameters. These components will now propagate the id and class attributes to the created HTML element without the need for explicit parameters. Note that we preserve the combining behaviour of class with FieldClass.
rynowak
pushed a commit
that referenced
this issue
Jul 1, 2019
Part of #10713 This change addresses the cleanup of the form components by removing the Id and Class parameters as explicit parameters. These components will now propagate the id and class attributes to the created HTML element without the need for explicit parameters. Note that we preserve the combining behaviour of class with FieldClass.
rynowak
pushed a commit
that referenced
this issue
Jul 5, 2019
Part of #10713 This change addresses the cleanup of the form components by removing the Id and Class parameters as explicit parameters. These components will now propagate the id and class attributes to the created HTML element without the need for explicit parameters. Note that we preserve the combining behaviour of class with FieldClass.
rynowak
added a commit
that referenced
this issue
Jul 5, 2019
Part of #10713 This change addresses the cleanup of the form components by removing the Id and Class parameters as explicit parameters. These components will now propagate the id and class attributes to the created HTML element without the need for explicit parameters. Note that we preserve the combining behaviour of class with FieldClass. * Update NavLink to use new features Simplifies the design of NavLink to use our new features for capturing unmatched attributes. I can't run the functional tests locally so I hope this works....
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
area-blazor
Includes: Blazor, Razor Components
Done
This issue has been fixed
enhancement
This issue represents an ask for new feature or an enhancement to an existing one
While doing #5071 - I left two things untouched that seem like they need some discussion.
Should we remove the
Id
andClass
parameters fromEditForm
andInputBase<>
?Making these attributes first class makes it obvious that you can set them, and these components have some special handling for
class
. We need to make a design decision here on what this experience should be like.Should we rewrite
NavLink
to use this new feature?NavLink already functionally has this behaviour. There's a big comment in NavLink about how it was intentionally written at a low level of abstraction that scared me away from making this change. We could do this easily and it would simplify the codes, but I want to make sure I'm not throwing away something valuable.
The text was updated successfully, but these errors were encountered: