Skip to content
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

Chore: Remove view component data attribute helper #4186

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

KevinMulhern
Copy link
Member

Because:

This commit:

  • Removes html_data_attributes_for view component helper method.
  • Removes data attributes parameter from card components - it wasn't used anywhere.
  • Adds a couple of spec for testing cards with ids and custom classes

Because:
* We can simplify and use Rails 7's [`tag.attributes` helper](https://blog.saeloun.com/2021/05/05/rails-7-transform-hash-into-html-for-erb-interpolation/) instead

This commit:
* Removes `html_data_attributes_for` view component helper method.
* Removes data attributes parameter from card components - it wasn't used anywhere.
* Adds a couple of spec for testing cards with ids and custom classes
@KevinMulhern KevinMulhern self-assigned this Sep 24, 2023
@KevinMulhern KevinMulhern added the Type: Chore Involves changes with no user-facing value, to the build process/internal tooling, refactors, etc. label Sep 24, 2023
@KevinMulhern KevinMulhern temporarily deployed to odin-review-app-pr-4186 September 24, 2023 12:58 Inactive
@KevinMulhern KevinMulhern merged commit 0bec432 into main Sep 26, 2023
@KevinMulhern KevinMulhern deleted the chore/replace-data-attributes-helper branch September 26, 2023 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Chore Involves changes with no user-facing value, to the build process/internal tooling, refactors, etc.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants