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

Add an ariaLabel prop to CypherEditor #216

Merged
merged 5 commits into from
May 23, 2024
Merged

Conversation

daveajrussell
Copy link
Collaborator

Adding an 'ariaLabel' prop to the CyperEditor props so that we can set an aria-label attribute on the codemirror editor.

This uses the contentAttributes facet, which may be extended later to add more DOM attributes, or changed to accept a kvp/Record so that DOM attributes may be fully flexible.

with the ariaLabel property set, we can see the attribute set in the playground:

Screenshot 2024-05-22 at 12 23 52

The property is optional, so not setting it should result in the aria-label attribute not being added to the editor:
Screenshot 2024-05-22 at 12 24 19

Copy link

changeset-bot bot commented May 22, 2024

🦋 Changeset detected

Latest commit: 135ffe9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@neo4j-cypher/react-codemirror-playground Patch
@neo4j-cypher/react-codemirror Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@CLAassistant
Copy link

CLAassistant commented May 22, 2024

CLA assistant check
All committers have signed the CLA.

@daveajrussell
Copy link
Collaborator Author

@daveajrussell daveajrussell merged commit 09dfae2 into main May 23, 2024
4 checks passed
@daveajrussell daveajrussell deleted the djr/add-aria-label-prop branch May 23, 2024 08:55
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