Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-607

Add classes/ids to PNG image container elements

XMLWordPrintable

    • MOODLE_14_STABLE
    • MOODLE_15_STABLE

      In order to be able to replace .png images for plugins (and the rest of elements in the main menu) we need to add classes/ids/data attributes so we can hide the .png files using CSS and replace it by font icons or something similar.

      Example

      <span class="plugin-ico"><img src="img/ico-settings.png" border="0"></span>
      

      Can be changed to:
      <span class="plugin-ico settings-icon"><img src="img/ico-settings.png" border="0"></span>

      or

      <span class="plugin-ico"><img id="settings-icon" src="img/ico-settings.png" border="0"></span>

      or

      <span class="plugin-ico" data-icon="settings"><img src="img/ico-settings.png" border="0"></span>

      We need to decide what is the better way for doing that:

      • Classes, id or data attributes
      • Add the classes/id/data in the img tag or in the parent element

            jleyva Juan Leyva
            jleyva Juan Leyva
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.