Skip to content

Conversation

litek
Copy link

@litek litek commented Jun 27, 2014

When you set className on a Link instance, isActive is never true since it is included in the route comparison.

@ryanflorence
Copy link
Member

does this allow <Link className="foo"/> to become <a class="foo active"/> ?

@litek
Copy link
Author

litek commented Jun 27, 2014

Yeah, class="foo" when state.isActive is false, and class="foo active" when state.isActive is true

mjackson added a commit that referenced this pull request Jun 27, 2014
Reserve className param
@mjackson mjackson merged commit c596293 into remix-run:master Jun 27, 2014
@mjackson
Copy link
Member

Thanks @litek!

@lock lock bot locked as resolved and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants