react-spectrum icon indicating copy to clipboard operation
react-spectrum copied to clipboard

Custom resize cursors

Open snowystinger opened this issue 3 years ago โ€ข 6 comments

Closes

โœ… Pull Request Checklist:

  • [ ] Included link to corresponding React Spectrum GitHub Issue.
  • [ ] Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • [ ] Filled out test instructions.
  • [ ] Updated documentation (if it already exists for this component).
  • [ ] Looked at the Accessibility Practices for this feature - Aria Practices

๐Ÿ“ Test Instructions:

๐Ÿงข Your Project:

snowystinger avatar Sep 19 '22 23:09 snowystinger

What's the plan for the aria hooks? Will we somehow fall back to the standard ones? Embed these?

devongovett avatar Sep 20 '22 00:09 devongovett

What's the plan for the aria hooks? Will we somehow fall back to the standard ones? Embed these?

I decided to move it out entirely, there's enough information coming from the hook to set whatever cursor you want. Reason being that it seemed like a rendering concern more than aria. Especially since you need to set the cursor on hover as well as setting the entire document, every element, with !important during drag. Without creating a stylesheet on the fly, setting it for every element would be impossible.

snowystinger avatar Sep 20 '22 17:09 snowystinger

The most recent storybook v18 build isn't showing the new cursor. It is showing a cursor, but it doesn't look like the one I see in files nor the first version of storybook with this PR.

ktabors avatar Sep 22 '22 20:09 ktabors

I didn't consider what Daniel reported as an issue, but since we are this doesn't seem right. Give it keyboard focus and then mouse over it. image

ktabors avatar Sep 26 '22 17:09 ktabors

I didn't consider what Daniel reported as an issue, but since we are this doesn't seem right. Give it keyboard focus and then mouse over it. image

Will be fixed by https://github.com/adobe/react-spectrum/pull/3560

update: fixed

snowystinger avatar Sep 27 '22 00:09 snowystinger