Skip to content
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

fix(show-hide): use initial value as fallback instead of parent #1243

Merged
merged 1 commit into from
May 8, 2020

Conversation

CaerusKaru
Copy link
Member

When SSR creates media screen styles, it sets the default display
CSS property to parent.display. However, if the parent has its
display property unset, it results in an empty display that breaks
the correct functionality as the next closest match is made.

This is fixed by setting display to initial as default instead
of an empty value.

Credit to @vmasek

Fixes #1163
Closes #1168

@CaerusKaru CaerusKaru added this to the 9.0.0-beta.30 milestone May 8, 2020
When SSR creates media screen styles, it sets the default `display`
CSS property to `parent.display`. However, if the parent has its
`display` property unset, it results in an empty display that breaks
the correct functionality as the next closest match is made.

This is fixed by setting `display` to `initial` as default instead
of an empty value.

Credit to @vmasek

Fixes #1163
@CaerusKaru CaerusKaru changed the title fix(show-hide): use initial value as fallback isntead of parent fix(show-hide): use initial value as fallback instead of parent May 8, 2020
@CaerusKaru CaerusKaru merged commit bf2355b into master May 8, 2020
@CaerusKaru CaerusKaru deleted the adam/fix-issue-1163 branch May 8, 2020 21:36
CaerusKaru added a commit that referenced this pull request May 13, 2020
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jun 8, 2020
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fxHide/fxShow incosistency with SSR and client rendered app
2 participants