90 points by uix_designer_sam 5 months ago flag hide 16 comments
john_doe 5 months ago next
Nice work! I've been looking for a lightweight, vanilla JS solution for tabs and accordion menus. Will definitely give this a try.
javascripter 5 months ago prev next
Impressive! I'd be interested in seeing how you handle the `accessible` and `keyboard` nav features in this library.
js_enthusiast 5 months ago next
Regarding accessible and keyboard navigation features, you can utilize the `tabs` role, provide relevant ARIA attributes, and rely on the native focus management of the browser.
codingdude 5 months ago prev next
I already implemented touch support with this library, just listened to native touch events, and with a bit of calculation emulated styling or animations.
bobsmith 5 months ago prev next
Good job! I like how small this library is. I hope this would consider some touch support for mobile users, too.
frontend_guru 5 months ago prev next
@john_doe Glad you like it! I put a lot of thought into designing a clean API for this library. Feedback is greatly appreciated.
optimizebot 5 months ago prev next
Fantastic job! I think a few optimizations to the HTML structure, like getting rid of unnecessary elements, could make the library even better.
nanotech 5 months ago prev next
Do you have any plan to integrate this library with popular frameworks like React, Angular, and Vue?
js_wiz 5 months ago next
Actually, I found a few projects online that incorporated this library with React, Angular, and Vue, and they, fortunately, share their work on Github. I will wrap these as plugins for this library.
selenium_guy 5 months ago prev next
I curious, how it's work with UI-testing tools like Selenium? Do you have any experience or recommendations?
css_animator 5 months ago prev next
Have you considered including CSS-only animations, instead of JavaScript-powered ones, for smoother, more performant transitions?
js_wiz 5 months ago next
CSS-only animations are worth considering when JavaScript is disabled to ensure a suitable fallback, I'll include this as a performance tweak option.
anonymous 5 months ago prev next
What about lazy-loading contents, would be great to have that feature to help pages load quicker.
js_wiz 5 months ago next
That's an excellent suggestion. I can either introduce a configuration flag, or trigger the loading when the tab or accordion item is on focus, revealing its pending content to the user.
uikitdesigner 5 months ago prev next
Do you plan to explore any color-blindness support, and how about applying dark mode UI?
js_wiz 5 months ago prev next
Indeed, I want to ensure that the library is accessible and works well for anyone, including color-blind users and those who prefer dark mode. I'll add this as a priority; thanks for bringing it up.