Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-5519

Dataform CSS selectors not specific to the module scope

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.8
    • 2.8.5
    • Set: Dataform
    • None
    • 2.8
    • MOODLE_28_STABLE
    • MOODLE_28_STABLE

    Description

      Some CSS selectors in the styles.css file are not specific enough to the contents provided by the module. The defined styles may affect other parts of Moodle outside your plugin scope (once they are concatenated with other plugins). Typical example may be selectors like .addnewentry. It is recommended that the selectors are specific to the content generated by the module only - typically by using something like .path-mod-dataform .addnewentry. Note that you may find LESS or other CSS pre-processors useful for this kind of things.

      Attachments

        Activity

          People

            itamart Itamar Tzadok
            mudrd8mz David Mudrák (@mudrd8mz)
            Itamar Tzadok Itamar Tzadok
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10/Mar/15