Menu text used as class names #37

Open
opened 2016-03-21 23:04:40 +13:00 by dave · 1 comment
dave commented 2016-03-21 23:04:40 +13:00 (Migrated from git.oeru.org)

Created by: jimt

Menu item text is turned into class names by lower casing and hyphenating with no prefixing/suffixing/escaping of existing class names. As an example a menu item of Course content turns into a menu item class course-content which has a CSS meaning. There are obviously many other names that would conflict with existing class names.

*Created by: jimt* Menu item text is turned into class names by lower casing and hyphenating with no prefixing/suffixing/escaping of existing class names. As an example a menu item of `Course content` turns into a menu item class `course-content` which has a CSS meaning. There are obviously many other names that would conflict with existing class names.
dave commented 2016-03-22 15:07:48 +13:00 (Migrated from git.oeru.org)

Created by: jimt

4c29e21 works around the problem. The proper solution would probably be to avoid the menu item title from appearing in the list of classes in the first place.

*Created by: jimt* 4c29e21 works around the problem. The proper solution would probably be to avoid the menu item title from appearing in the list of classes in the first place.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
OERF/oeru_course#37
No description provided.