Skip to content

uikit bugs #1055

Closed
Closed
@kryp71c

Description

@kryp71c

I am using Pattern Lab Node v3.0.3 on Mac, with Node v10.15.0, using a Vanilla | Custom Edition and uikit-workshop version 1.0.3

@sghoweri nice job creating the new look for the uikit. 👍
This is copied over from gitter.

I wanted to share some issues I noticed (issues on Mac using Chrome unless otherwise noted):

  1. Menu tree initially closed when submenu pattern is displayed
    sub menu tray closed on page load
    To test open menu navigate to pattern with subpatterns, select sub pattern, wait for page to load and open the menu again. The arrow indicating the drawer state will point down, but the drawer is closed.
    e.g. Organisms > Global ... reveals two sub-patterns: Header and Footer ... Organisms > Global > Header ... opens the header pattern ... clicking on Organisms again after the page has loaded reveals the menu with the global section closed but the arrow indicator pointing down.
    State not hoisted/persistent?

  2. Internet Explorer 10 gets a blank page
    This issue existed before the recent uikit updates.
    Due to javascript that is not supprted by older browsers (e.g. ie10 doesn't support mutation observer which is used in the uikit).
    Not sure which browsers patternlab is meant to support. However, some of us, unfortunately, need to support legacy browsers due to institutional requirements.

  3. Logo proportions are distorted in IE11
    distorted patternlab logo
    From past experience, removing the width and height attributes from the svg, ensuring there is a viewbox attribute, and adding preserveAspectRatio="xMinYMax meet" to the svg; then setting width height attributes on the img tag and controlling scaling with css seems to work accross browsers if the svg needs to be responsive.

  4. Fractional widths in the screen width form are cropped.
    cropped numbers
    Perhaps these need to be rounded, or the form width increased?

  5. a11y
    insufficient contrast in dark theme placeholder text
    insufficient contrast in light theme placeholder text

  • The Search form "Find A Pattern" placeholder has insufficient contrast with the new colors (in both the dark and light theme).
  • The Search form input needs a label (placeholders are not label replacements)
  • The screen size form needs descriptive text. Maybe a visually hidden fieldset legend?
  • The tools tooggle button (gear) needs visually hidden descriptive text (title attribute is not sufficient for a11y)
  • missing focus outlines or equivalent on menu drawer toggle buttons (arrows)
  • missing focus outlines on resize viewport buttons (they do have hover backgrounds on the light theme)
  • missing focus outlines tools toggle button (it does have a hover background in the light theme)
  • missing focus outlines on tools menu items (in dark theme)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions