Skip to content

Conversation

@yishayhaz
Copy link
Contributor

@yishayhaz yishayhaz commented Feb 25, 2023

What is it?

  • Feature/enhancement
  • Bug
  • Docs/tests

Description

I had a few issues implementing the toggle component on the pagination docs
Described at #209

  • HeadlessToggle expected a prop pressed and the DaisyToggle received checked and passed it as pressed, I renamed it.
  • DaisyToggleProps interface didn't extend HeadlessToggleProps
  • pressed and defaultPressed didn't were always initially false.

Checklist:

  • My code follows the developer guidelines of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • Added new tests to cover the fix/functionality

renamed `checked` to it's headless name (`pressed`), added `checked={pressedState}`

BREAKING CHANGE: any component who uses daisy-toggle, will have to rename `checked` to `pressed`

#209
@gioboa gioboa merged commit d96c401 into qwikifiers:main Feb 25, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Feb 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants