Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-41308

no-header class for HTML blocks with no header (backport of MDL-37674)



    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.4.5, 2.5.1
    • Fix Version/s: None
    • Component/s: Blocks, Themes
    • Labels:


      This issue is just a backport of MDL-37674:

      Depending on how you've styled your blocks, a block that has no header can lead to a missing top border on block content. It would be really nice if there were a class on the .block element that indicated that there was no header, so that if, for example, content then needs to be given a border-top and a border-radius on the two top corners, theme designers have a style with which to target those blocks.
      The .block_course_summary block has no header by default. Another block which can have no header, if a header title is not entered for it, is the HTML block.
      I am able to add a .no-header class to the .block_course_summary block with the patches above below, but am not able to get it working for the HTML block.

      git checkout MOODLE_25_STABLE
      git pull git://github.com/samhemelryk/moodle.git wip-MDL-37674-m25

      git checkout MOODLE_24_STABLE
      git pull git://github.com/samhemelryk/moodle.git wip-MDL-37674-m24


          Issue Links



              • Votes:
                1 Vote for this issue
                3 Start watching this issue


                • Created: