Build a mobile popover menu with Svelte & OpenProps

Поделиться
HTML-код
  • Опубликовано: 14 окт 2024

Комментарии • 10

  • @TomSmallwood
    @TomSmallwood 5 месяцев назад +2

    Built these plenty of times but so nice to see how someone else builds it, picked up a few things. Enjoyed the video Josh, thank you!!!!

  • @blokche_dev
    @blokche_dev 5 месяцев назад +2

    Really like how Svelte leverage the platform with a minimal impact on the bundle size. Thanks for sharing!

  • @ScottSpencePlease
    @ScottSpencePlease 5 месяцев назад

    Super simple explanation Josh! Thanks for the content

    • @josh_nussbaum
      @josh_nussbaum  5 месяцев назад

      Thanks Scott! 🙇
      Was just reading your piece about patching, the newsletter is great 🙌

  • @sinankesk_in
    @sinankesk_in 5 месяцев назад

    Great tricks. Thank you Josh.

  • @hyunbinseo
    @hyunbinseo 2 месяца назад

    Great tutorial! Just curious, is there a reason not to use in this use case? (the non-modal version)

  • @adamshand
    @adamshand 5 месяцев назад

    Helpful, thanks!

  • @HaaniJaber
    @HaaniJaber 5 месяцев назад +1

    What's the best way to close the popover when clicking on a ?
    Looking for good a11y as well as the menu to close once a link is clicked.

    • @josh_nussbaum
      @josh_nussbaum  5 месяцев назад +1

      A few ways to do that in an SPA
      Handle on:click on links (without doing a preventDefault) and call popover.hidePopover()
      Another way, with SvelteKit, is to handle beforeNavigate and call popover.hidePopover()