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

feat(visually-hidden): added asChild prop to VisuallyHidden #2554

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

Powerplex
Copy link
Contributor

TASK: SPA-485

Description, Motivation and Context

Missing asChild prop on VisuallyHidden to make it polymorphic. Until now it was a span and could not be any other html tag.

Types of changes

  • ✨ New feature (non-breaking change which adds functionality)

@Powerplex Powerplex force-pushed the visually-hidden-aschild branch from 08c278b to 1c2b96d Compare January 16, 2025 09:17
@@ -23,6 +23,9 @@
"scripts": {
"build": "vite build"
},
"dependencies": {
"@spark-ui/slot": "^8.0.2"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"@spark-ui/slot": "^8.0.2"
"@spark-ui/slot": "8.0.2"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are you sure ? This is like this in every package.

Enregistrement.de.l.ecran.2025-01-16.a.10.19.24.mov

Copy link
Contributor

Choose a reason for hiding this comment

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

That should not be the case imho, as it may introduce different users with varying versions of those dependencies installed on their machines, making it difficult to debug in the event of bugs.

See 👉https://github.com/adevinta/spark/wiki/Agreements#managing-dependencies-within-spark-components

Copy link
Contributor Author

@Powerplex Powerplex Jan 16, 2025

Choose a reason for hiding this comment

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

Are you ok if I replace everywhere then but in a separate PR ? I have a feeling that we used to remove the ^ in the past and that it is possibly the fixed versioning that automatically added it back everywhere ?

Copy link

codecov bot commented Jan 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.50%. Comparing base (74733d6) to head (1c2b96d).
Report is 7 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2554   +/-   ##
=======================================
  Coverage   96.50%   96.50%           
=======================================
  Files         520      520           
  Lines        4610     4611    +1     
  Branches     1621     1622    +1     
=======================================
+ Hits         4449     4450    +1     
  Misses        159      159           
  Partials        2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Powerplex Powerplex merged commit 0931c1c into main Jan 16, 2025
9 checks passed
@Powerplex Powerplex deleted the visually-hidden-aschild branch January 16, 2025 09:53
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.

3 participants