juanca / react-aria-components

React ARIA-compliant Components
https://juanca.github.io/react-aria-components
MIT License
6 stars 3 forks source link

Tabs #2

Closed ahuth closed 6 years ago

ahuth commented 6 years ago

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:

Philosophical:

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.

juanca commented 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.

juanca commented 6 years ago

On a related note, I do want to improve the general process for documentation and testing coverage -- but that will be followup work.