Closed ahuth closed 6 years ago
Are we okay with some of these components keeping internal state? I'm not opposed, although the current use case for it in tabs may not be necessary if we can come up with a better way of managing tab focus.
Yeah, let's take another stab at this. However, if we do need some state, I won't be opposed.
Should we bring in https://babeljs.io/docs/en/babel-plugin-transform-class-properties/ and use class properties? Doesn't matter for now, but the current implementation of tabs would be cleaned up a lot.
I need to do a bit of research into this -- but it might come down to how many ARIA components will require internal state.
On a related note, I do want to improve the general process for documentation and testing coverage -- but that will be followup work.
Not ready for primetime, yet, and this is a straight-up port from Mavenlink of the Tabs component. There are a couple things to resolve with the implementation and philosophically, first.
Implementation:
bind
-ing.Which can be useful for mixing in other things like buttons and using flex to put tabs on one side, buttons on the other.
Philosophical:
Are we cool with bringing in a 3rd-party dependency? A lot of accessibility things require IDs, and we need a way to generate unique ones. I brought in lodash.uniqueid for that.If you're game @juanca , I'd recommend us pairing on next week:
As I said, this thing isn't ready for primetime, yet, but I'm pretty happy with the API. Let's work on resolving the above issues sometime.