-
Notifications
You must be signed in to change notification settings - Fork 5
refactor: upgrade to v25 #16
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
base: master
Are you sure you want to change the base?
Conversation
c6f475a to
0a6403f
Compare
| --anchor-nav-inner-padding: 0; | ||
| --anchor-nav-tabs-background: #fff; | ||
| --anchor-nav-tabs-stuck-box-shadow: 0 4px 5px -6px rgba(0, 0, 0, 0.4); | ||
| /* |
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.
nit: some incorrect indentation in the comment.
| this.$.slot.addEventListener('slotchange', () => this._onSlotChange()); | ||
| this.$.tabsSlot.addEventListener('slotchange', e => this._onTabsSlotChange(e)); | ||
| this.$.headerSlot.addEventListener('slotchange', () => this._onHeaderSlotChange()); |
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.
I wonder if we should use PolylitMixin like some other add-ons do? It would allow to reduce such changes.
| const scrollElement = tabs.shadowRoot && tabs.shadowRoot.querySelector('[part="tabs"]'); | ||
| const backButton = tabs.shadowRoot && tabs.shadowRoot.querySelector('[part="back-button"]'); |
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.
nit: could use tabs.shadowRoot?.querySelector('[part="tabs"]'); instead.
Upgrade the component to work with v25:
__isCustomTabmarker propertyThemeDetectionMixin.ThemableMixin(shadow root style injection). It's not needed by the component itself, and users should not use it as it's going to be dropped in a future version.