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

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


    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • 2.4.5, 2.5.1
    • Blocks, Themes

      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

            Unassigned Unassigned
            poltawski Dan Poltawski
            1 Vote for this issue
            3 Start watching this issue


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