-
Notifications
You must be signed in to change notification settings - Fork 1
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
Iron-collapse removed, div with id content css transition. #47
Iron-collapse removed, div with id content css transition. #47
Conversation
f8c1055
to
b840a92
Compare
iron-collapse removed;
iron-collapse removed;
accordion tests implemented with getComputedStyle, getPropertyValue
b840a92
to
59e640d
Compare
Needs more tests to keep up with the code coverage decrease. |
cosmoz-tab.html
Outdated
:host([has-cards][accordion]) #content { | ||
display: block; | ||
:host(:not([has-cards])[accordion]) #content { | ||
transition-duration: var(--cosmoz-tab-collapse-transition-duration, 300ms); |
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.
--cosmoz-tab-collapse-transition-duration
should be --cosmoz-tab-transition-duration
similar to the variable for tab-card
--cosmoz-tab-transition-duration
0113644
to
d6585c7
Compare
test if function _valueForItem handles null item _valueForItem handles null attr resizerShouldBeNotified test
d6585c7
to
43e6544
Compare
16aeefd
to
6ea4355
Compare
_onSelectedTransitionEnd test _normalizeValue test normalizeValue test attrForSelected null
6ea4355
to
7322d69
Compare
last selectedItem remains selected
@megheaiulian This is ready for review. (more tests added to keep up with the code coverage) |
@megheaiulian review approval still stands? |
@nomego On desktop (non accordion) iron-collpase wasn't used at all but still handled and triggered some resize events. Since it's not needed we just do the transitions with css on mobile. |
Does this still trigger "tab activated" when expanding "tab as card" on mobile? |
@nomego This should work exactly as before. The transition part was already totally separated from the activated event. Normally it just changed the |
Replaced iron-collapse in cosmoz-tab.
Replaced iron-collapse in cosmoz-tab-card.
Tests updated.
es6 updates for accordion.html tests.
fixes #46
More tests to keep up with the code coverage decrease. Done.