Skip to content

Conversation

@jcoyne
Copy link
Member

@jcoyne jcoyne commented Oct 22, 2024

This allows us to remove a SASS @extend, which will allow us to decouple from SASS

@jcoyne jcoyne added this to the 9.X milestone Oct 22, 2024
<%= link_to url, title: label, class: "#{Array(@classes).join(' ')} view-type-#{ @key.to_s.parameterize } #{"active" if selected?}" do %>
<%= icon %>
<span class="caption"><%= label %></span>
<span class="visually-hidden"><%= label %></span>
Copy link
Member

Choose a reason for hiding this comment

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

does it make sense to leave caption there too for anyone that might have or want to target it for custom style override?

Just asking the question, you can say no!

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't see any harm in doing that. I've pushed this back in.

This allows us to remove a SASS @extend, which will allow us to decouple from SASS
@jcoyne jcoyne merged commit 0aaf15f into main Nov 4, 2024
13 checks passed
@jcoyne jcoyne deleted the visually-hidden branch November 4, 2024 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants