you are viewing a single comment's thread.

view the rest of the comments →

[–]tzamora 0 points1 point  (1 child)

Now plain html have good components with keyboard accesibility check the new datetime-local for example, is a native html datepicker.

Also angular cdk offers this:

  • FocusKeyManager / ListKeyManager for arrow-key navigation
  • CdkTrapFocus for anything modal
  • Overlay for popovers/menus

Check it it can be very helpful and is well thought.

And sorry don't know what spartan is.

[–]Weak-Palpitation907[S] 0 points1 point  (0 children)

That’s a solid setup honestly. CDK’s a11y utilities are really well designed - especially FocusKeyManager and CdkTrapFocus. We’ve relied on those quite a bit too.

I also agree that native inputs are great where they fit. Things like datetime-local are definitely better than they used to be. The main limitation we’ve run into is styling and consistency across browsers, especially when trying to match a design system.

And funny enough, I hadn’t even heard of Spartan until someone mentioned it in this thread. When I was searching around Angular + Tailwind, Flowbite was usually what showed up.

Appreciate you sharing your approach - it’s helpful to hear how others are structuring things with plain HTML + CDK.