Skip to content

GAUD-9962: iterator component - #7423

Draft
dlockhart wants to merge 7 commits into
mainfrom
GAUD-9962/iterator
Draft

GAUD-9962: iterator component#7423
dlockhart wants to merge 7 commits into
mainfrom
GAUD-9962/iterator

Conversation

@dlockhart

Copy link
Copy Markdown
Member

I still have a few outstanding design questions for Glen when he's back, but I think it's worth getting this in and we can address them after.

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the PR! 🎉

We've deployed an automatic preview for this PR - you can see your changes here:

URL https://live.d2l.dev/prs/BrightspaceUI/core/pr-7423/

Note

The build needs to finish before your changes are deployed.
Changes to the PR will automatically update the instance.


describe('d2l-button-iterator', () => {

Object.entries(buttonIteratorFixtures).forEach(([name, template]) => {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I couldn't think of a state I didn't want to put through axe, so 🤷

#previousId = getUniqueId();
#nextId = getUniqueId();

#handleNextClicked(e) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not a big deal but these two handlers could be done with a general #handleButtonClick that checks e.target.disabled, and then e.target.id to determine which event to dispatch.

@dbatiste

Copy link
Copy Markdown
Contributor

Looks good!

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.

2 participants