Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-44022 Make buttons (and related items) themeable
  3. MDL-44023

Add .btn class to every button, input and link in Moodle that's supposed to look like a button

    XMLWordPrintable

Details

    • Sub-task
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.7
    • None
    • HTML and CSS
    • None
    • MOODLE_27_STABLE

    Description

      Sometimes buttons and inputs aren't supposed to look like buttons, sometimes things that aren't buttons (e.g. links) are supposed to look like buttons.

      Bootstrap uses the .btn class for this purpose.

      Moodle should adopt this too, and remove the workarounds for applying these button styles to the current mix of classnames and button types.

      Current styles are in:

      theme/bootstrap/less/moodle/buttons.less

      and

      theme/bootstrap/less/moodle/expendable.less

      (the reason for the latter is that it took a lot of CSS to do this and, before a bug-fix that took care of that, we were sending CSS to IE9 and earlier that was too long for it to cope with.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bawjaws David Scotson
            Amy Groshek, David Scotson, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: