edx / ux-pattern-library Goto Github PK
View Code? Open in Web Editor NEWThe (working) Visual, UI, and Front End Styleguide for edX.
Home Page: http://ux.edx.org
License: Apache License 2.0
The (working) Visual, UI, and Front End Styleguide for edX.
Home Page: http://ux.edx.org
License: Apache License 2.0
The left sidebar doesn't scroll. This will become problematic once we add more patterns. I'll take a look at this.
FYI @talbs
The links lead to 404, and pertain to the website to view the working demo. This link may now be irrelevant as the working product has been released, in which case the links might be better removed.
See https://github.com/edx/edx-platform/pull/7877#discussion_r30045945 for more details.
What do you think of changing the href values of the sample links to a valid value? Currently, they reference "#". What if they referenced http://ux.edx.org or http://edx.org or self-referenced the parent container /elements/headings/ or #headings ?
When creating an extend to use in form field pseudo elements (i.e., &::-webkit-slider-runnable-track
) the extend doesn't work when used more than once. We need to explore this further and investigate why Sass extends aren't working.
We're using mixins as a temporary solution.
We have error, warning, and success color palettes, but we should consider adding one for "info" too (usually a nice mix of blues).
cc @talbs
In a meeting with @cptvitamin on 18 Jun we uncovered the following issues with accessibility for this Pattern Library site. We plan to address them.
aria-describedby
not working on some fields, even though the markup is correctaria-valuemax
, aluemin
, valuenow
(misisng the value
parts now)p
textcc @talbs
Add language to the Accessibility Styleguide that emphasizes the importance of Heading and List semantics. Give examples of when it is important to include machine-readable semantics, even if visual indicators don't seem important, and vice versa.
Currently, any changes to the post, markup, or JS files require you to stop and restart the server manually. Can we have it watch and refresh automatically for these just as it does for CSS?
I noticed that we have examples for creating a hyperlink that appears to be a button. I'm OK with doing this but it would be a great opportunity to warn developers to do this with care. Links and Buttons are two different elements with different purposes and even different default controls (Enter/Return is used to activate a link and Space and Enter/Return is used to activate a button). For screen reader users, they appear in different out of context lists. For example, if a user is getting phone support, the support person would likely tell them to "Click on the login button" (a login button that was actually a link that looked like a button). They wouldn't find it in their list of buttons.
As a general rule of thumb: "Links go somewhere. Buttons do something."
As noted in #208, currently, select fields have an explicit height assigned to them. This seems fragile (with respect to cross browser rendering) and is currently cutting off some content within and around these elements.
TODO: Revise styling to not rely on height being specificed + revisit error/inline message UI.
Trying to install the pattern library as a bower dependency currently does not work. None of the dev dependencies are installed, and running bower install
in the edx-ux-pattern-library directory does not work either. As an engineer, I would like to be able to use the UX pattern library without having to manually copy the SASS source.
As a developer from another team who uses the pattern library, I think it is crucial that proper Bower support be integrated with the pattern library (my original thought was NPM, but edX as an organization uses Bower to manage front-end dependencies). I tried playing around in my own branch, but ultimately this change is significant enough to warrant a dedicated effort. Some suggestions I have that could help this effort:
main-*.scss
file, which currently resides in the documentation section of the repo. This makes it confusing for developers who wish to plug-and-play the library with little configuration. There should be a pattern-library-ltr.scss
file as well as a pattern-library-rtl.scss
file, which includes all of the needed imports.main-ltr.scss
and main-rtl.scss
. These dependencies should be formally documented in a README. JS dependencies wouldn't need to be documented given there is a compiled production version of the Javascript.This is more of something to keep in mind, nothing extremely pressing. Just thoughts from someone who has tried using the pattern library. Let me know if you have any questions or comments. Thanks!
See https://github.com/edx/edx-platform/pull/7877#issuecomment-100960459 for more edX-related details as well as https://css-tricks.com/snippets/css/using-font-face/ for industry standards.
In short, we should only support ttf
, woff
, and woff2
formats
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.