EZP-23765: As a PlatformUI user I want to view different language ver… #251
EZP-23765: As a PlatformUI user I want to view different language ver… #251
Conversation
@@ -1,4 +1,5 @@ | |||
<h2 class="ez-raw-content-title"><a href="#">Content</a></h2> | |||
<div class="ez-language-switcher"></div> |
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.
usually we add the -container
on such element so it should be called ez-language-switcher-container
.
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.
There's also an inconsistency here, the language switcher is a sub view of the LocationView but its container is added to the RawContentView template. It's either a sub view of the LocationView and its container is added to the LocationView template or a sub view of the RawContentView and it's ok to add the container in the rawcontent.hbt template.
Ready for review |
* For full copyright and license information view LICENSE file distributed with this source code. | ||
*/ | ||
|
||
.ez-language-switcher-container { |
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.
the empty rules can be removed
I think I haven't miss anything from @dpobel 's comments, so please review it again (I will rebase commits after positive review). Added the screencast which is presenting the behaviour of the language switcher, however navigating to translations is not working as it's waiting for this one: https://jira.ez.no/browse/EZP-24384. However, there shouldn't be need to fix anything after that in language switcher as |
display: block; | ||
transform: scaleY(0); | ||
transform-origin: 50% 0%; | ||
-webkit-transform-origin: 50% 0%; |
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.
please order, group and align the rules like (and -webkit-transform
is missing and -webkit-transition
is not needed):
transform: scaleY(0);
-webkit-transform: scaleY(0);
transform-origin: 50% 0%;
-webkit-transform-origin: 50% 0%;
transition: all 0.3s ease;
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.
after testing it, 0.3s is maybe a bit slow in this case, I think 0.2s would give a better result.
to flag or not to flag, that'ts the question... :) |
…sions of a content object Conflicts: Resources/config/css.yml
Rebased |
+1 |
…e_versions_of_content_object EZP-23765: As a PlatformUI user I want to view different language ver…
JIRA: https://jira.ez.no/browse/EZP-23765
Description
The goal of the story is to allow user switch viewed language of content by using dropdown list with existing translations. After choosing other translation app should navigate to the same location view but with selected language parameter. There will be language indicator in upper right corner of "Content" section.
Screencast: https://youtu.be/MYP8XpRlSZc
Tasks
Related issues: