-
Improvement
-
Resolution: Won't Do
-
Critical
-
None
-
2.5
-
MOODLE_25_STABLE
As discussed at the Perth Hackfest, I'm opening this bug to discuss the idea of adding the Totara element library to Moodle. The main benefits are:
- Encourages consistency around the use of UI elements in Moodle
- Provide theme designers with a single place to check their themes
- Provide developers with examples of how to implement common UI elements correctly
- By allowing us to focus on a key set of elements we can ensure they are all implemented really well (including accessibility, usability, right-to-left support, working with responsive design etc.)
I've pushed an initial version here:
https://github.com/totara/moodle/tree/mdl-feature-element-library
This is based on the Totara element library but implemented as an admin tool (adding a menu item under Appearance in the administration menu). Some immediate areas for improvement are:
- Currently these are just static pages. At the hackfest we discussed providing a more pluggable architecture to allow modules to define their own elements and to dynamically generate pages with code examples, output source code and an example from a single example. For example see the Twitter bootstrap documentation (http://twitter.github.com/bootstrap/base-css.html#forms).
- The current pages only show a limited number of basic elements, there are sure to be lots of extra UI elements that should be added.
- We should look at which methods are considered best practice and depreciate then remove UI elements that should no longer be used.
- has been marked as being related by
-
MDL-38856 META: Issues around Bootstrapbase and Clean theme
-
- Closed
-
-
MDLSITE-2245 Boostrap less code must be documented
-
- Open
-
-
MDL-40111 Add CSS template library to the docs
-
- Closed
-
- is duplicated by
-
MDL-44022 Make buttons (and related items) themeable
-
- Closed
-
- will be (partly) resolved by
-
MDL-45770 Implement the stage 1 tasks from spec http://docs.moodle.org/dev/Render_library_specification
-
- Closed
-
- will help resolve
-
MDL-45050 POLICY: Styling of base vs. bootstrapbase
-
- Closed
-
1.
|
Convert confirm dialogues to use the confirm renderer |
|
Closed | Unassigned |