[Snyk] Upgrade @reach/rect from 0.6.2 to 0.17.0 #21
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade @reach/rect from 0.6.2 to 0.17.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
Release notes
Package name: @reach/rect
💔 Breaking Changes
disclosure
defaultOpen
prop's value. This was done as a progressive enhancement to ensure content was visible to users without JavaScript, but in most cases it just meant that the user might see a flash before the state would change, causing unwanted layout shift.defaultOpen
prop's value on the initial render. If you want the old behavior, control the state of your disclosures and ensure that the initial open state is always set totrue
, then set the desired state for the following render inuseEffect
.tabs
isSelected
from from theTab
component. This prop was useful before we had hooks, but we can now get the selected tab from context without using render props. (2dd0aec)🐛 Bugfixes
auto-id
tabs
:focus-visible
listbox
querySelector
specificity to fix incorrect button clicks (#903)menu-button
,combobox
,listbox
🤜🤛 8 Committers
BREAKING: This release fixes a rendering bug in the
descendants
, but the bug in some cases may have coincidentally allowed descendants to be re-indexed in dynamically sorted lists. While this is probably a nice feature, it didn't work consistently and created problems with nested collections.We do not directly support dynamic sorting of lists, so if you relied on this "feature" you'll need to provide indices to the descendant item directly via props. If you're rendering dynamic lists you are probably iterating an array anyway, so you shouldn't have any issues.
This applies to all collection-based compound components:
🐛 Bugfixes
menu-button
✨ Enhancements
menu-button
dialog
rect
observe
is true🤜🤛 3 Committers
🐛 Bugfixes
utils
as={Link}
onMenuLink
(viautils/polymorphic
) (@ IanVS)menu-button
listbox
📝 Documentation
dialog
✨ Enhancements
combobox
openOnFocus
is true then also open when the input is clicked. (@ ProggerPete)accordion
,disclosure
tabIndex
from accordion and disclosure panels (@ joshuajaco)🤜🤛 10 Committers
🐛 Bugfixes
menu-button
listbox
ListboxList
when it's styled to overlapListboxButton
(@ loque)📝 Documentation
dialog
react-focus-lock
andreact-remove-scroll
dependencies✨ Enhancements
combobox
openOnFocus
is true then also open when the input is clicked (@ ProggerPete)accordion
,disclosure
tabIndex
from accordion and disclosure panels (@ joshuajaco)🤜🤛 8 Committers
Commit messages
Package name: @reach/rect
contentId
to SkipNavLink docs reach/reach-ui#858):focus-visible
active in Safari 15.4 after clicking tab with mouse reach/reach-ui#915)Compare
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs