-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(tabs): implement tabs controller #2577
Conversation
feat(tabs): implement tabs controller
🦋 Changeset detectedLatest commit: 8f54b25 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for patternfly-elements ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
@bennypowers assuming we want to hold this one off till after 2.5 release? |
what's holding it back? |
Maybe I misunderstood, but thought we are holding off on all changes that remove base classes till after 2.5.0? |
if this doesn't change the public api of the base class, it can go in 2.5.0. then we can get a leg-up on implementing in rhds |
This PR deletes the base class completely. |
it doesn't have to though.. you could just keep the base class file around, or reimplement tabs in that base class using the controller |
Ok after exploring believe leaving the base class around is the best option here. Implementation of the tabs-controller into the Base class still causes breaking changes due to other code reorg. I'll revert the removal of the Base classes here, and can follow up with their removal. |
@bennypowers if we have time next week, lets pair on this just to comb it over to make sure I haven't misrepresented or misplaced anything. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
last couple of bits. almost there
What I did
tabs-controller
inpfe-core
tabs-controller
inpf-tabs
no longer inherits from BaseTabsRemoved logic from BaseTabs and created TabsControllerrevertedRemovedrevertedBaseTabs
,BaseTab
andBasePanel
, moved remaining logic topf-tab
andpf-tab-panel
Closes #2575
TODO:
Should we reintroduce BaseClasses with an implementation using the TabsController? ( I have this saved as a stash atm, need to have a conversation regarding this approach and breaking changes in general). If we reimplement BaseTabs using TabsController should pf-tabs extend this BaseClass or should it extend from LitElement given discussion here:Planning for Version 3.0: Removal of Base Classes #2578 (We are removing BaseClasses in 3.0, so no need to reimplement the tabs controller here)Should overflow controller be integrated into TabsController? What constitutes the minimum for what TabsController contains? My initial thought was that overflow isn't tabs specific and could envision tabs without the overflow option. However, RTI is integrated in the TabsController as it is integral to the accessibility of tabs and can be baked in.(After a couple discussions on this, overflow is an additive feature and it should stay abstracted from the tabs controller).tabs-controller.js
to core package exportsTesting Instructions
Notes to Reviewers