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

FLUID-5532: Responsive UIO #825

Merged
merged 29 commits into from Apr 20, 2017
Merged

FLUID-5532: Responsive UIO #825

merged 29 commits into from Apr 20, 2017

Conversation

jobara
Copy link
Member

@jobara jobara commented Apr 13, 2017

Responsive styling for UIO.

Notes:

  • desktop styling for 640px and wider screens
  • the mobile version of the sliding panel tab should work to at least a minimum of 320px width
  • adjuster panels for mobile version may require horizontal scrolling to view all of their contents. This is a design decision that @dayotte and myself discussed
  • there is a bug with the initial opening of the sliding panel on mobile when lazy loading is enabled. ( See: FLUID-6151 ) ( This issue is caused by the OpenSans font, see comment)
  • iOS does not support Comic Sans, and will just fall back to a sans serif font.

https://issues.fluidproject.org/browse/FLUID-5532

jobara added 24 commits April 4, 2017 14:14
Also added meta tags for initial size to examples, manual-tests, and demos that use the sliding panel.
- panels take up full width
- descriptions are hidden offscreen
- headers centred and icons removed

Also added missing/incorrect headers for adjusters in desktop view
Otherwise if we trigger the onSignificantDOMChange event on window
resize, needed for switching between large and small screen presentations,
it will show the panel contents when the panel is closed.
As adjustments are applied the panels will need to be scrolled.
Reducing padding so that reset icon shows even when text size, text style and enhance inputs are enabled.
@jobara jobara requested a review from cindyli April 13, 2017 21:04
@@ -93,14 +95,22 @@
<div class="flc-overviewPanel fl-overviewPanel-container"></div>
<!-- BEGIN markup for Preference Editor -->
<div class="flc-prefsEditor-separatedPanel fl-prefsEditor-separatedPanel">
<!-- This div is for the sliding panel that shows and hides the Preference Editor controls in the mobile view-->
<div class="fl-panelBar fl-panelBar-above">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the reason to have two identical divs for showing prefs editor in the mobile view and in the desktop view?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cindyli one is above the sliding panel and one is below. The one above is used for mobile and the one below for desktop. It is possible to have a single one and change the placement with styling; however, doing so will break the tab order for one of the implementations. I had spoken to Lisa about that, and she indicated that it would be a WCAG failure. In the future we plane to only have the panel bar above, in all cases. However, there needs to be some design consideration worked out for how this will affect the interactions on the desktop view first. Meaning that the change won't happen in the near future.

min-width: 15em;
.fl-prefsEditor-buttons {
width: 100%;
height: 66px;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason that the button height is defined in "px" instead of "rem"? The same comment applies to line 68 & 74.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cindyli yes, so that the button size remains fixed on mobile. When using rem values, it will cause the button to grow and push the sliding panel down as a user is interacting with it. For the other lines, it's to save space when adjusting text size in the panels. I'll add some comments to the styl file.

}

.fl-prefsEditor-reset {
// border-right: 1px solid #ccc;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the commented line.

@cindyli
Copy link
Member

cindyli commented Apr 17, 2017

Please add the border for "show preference" button when UIO is set to be used: 1. on a mobile device; 2. when a high contrast theme is turned on.

screen shot 2017-04-17 at 11 29 40 am

In mobile the bottom border could go missing if the line height was increased and other adjustments were applied.
@jobara
Copy link
Member Author

jobara commented Apr 18, 2017

@cindyli fixed the missing border. The border was actually always there, it was just being hidden when the line-spacing and other adjustments were applied.

@cindyli
Copy link
Member

cindyli commented Apr 19, 2017

According to the mobile designs specified in FLUID-5532 JIRA, moving in between UIO panels is by touching "<" to go to the previous panel and ">" to go to the next panel. The implementation in this pull request doesn't have this functionality. Instead, panels are separated with a vertical line and the scrolling of panels is same as what's for the larger screen devices (see attached screenshot). I wonder what's the thought of this implementation. Is it intermediate?

screen shot 2017-04-19 at 2 58 17 pm

@dayotte
Copy link

dayotte commented Apr 20, 2017

Yes it's intermediate.

@cindyli cindyli merged commit 182c6b7 into fluid-project:master Apr 20, 2017
@cindyli
Copy link
Member

cindyli commented Apr 20, 2017

Merged at f8d92a5

@jobara jobara deleted the FLUID-5532 branch April 24, 2017 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants