Add InactiveClass parameter to NavLink#66365
Conversation
Adds an optional InactiveClass parameter to <NavLink> that mirrors ActiveClass: when the link's href does not match the current URI, the supplied class is appended to any user-provided class. The default is null, so existing usage is unaffected. Fixes dotnet#37765
|
Thanks for your PR, @KitKeen. Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
|
Friendly ping, this PR has been sitting without an assignee or reviewer. It's a small additive change (new optional InactiveClass on NavLink, mirroring ActiveClass), CI is green, PublicAPI.Unshipped.txt updated. Fixes #37765 which has the help wanted label. Happy to address any feedback when someone has a moment. cc @javiercn |
|
Gentle follow-up on this one. The change is narrowly scoped — a single new optional |
Add InactiveClass parameter to NavLink
Fixes #37765
Summary
Adds an optional
InactiveClassparameter to<NavLink>that mirrorsActiveClass. When the link's href does not match the current URI, the supplied class is appended to any user-providedclass. The default isnull, so existing usage is unaffected.Example