Seen, for example, at admin/reports.

I see two ways to fix this:

- 1. Add a clearing class to the page title block, based on whether the tabs block is present. This would need some preprocessing work probably
- 1. bite the bullet and define custom regions for the theme, providing a region just for page title, tabs, and action links. This region can have a clearfix as a whole.

Comments

joachim created an issue. See original summary.

joachim’s picture

It appears that by the time hook_preprocess_region() is invoked, the blocks are already rendered, so I'm not sure how that preprocessor can affect the page_title block.

joachim’s picture

Title: Page title needs a CSS clear when no tabs are present » Add a 'title_tabs' region to provide a CSS clear for page title and tabs
Issue summary: View changes
joachim’s picture

Status: Active » Fixed

This requires us to define default blocks, so that they go in the right regions on theme install.

(Referencing #2647448: Allow themes to specify default regions for blocks, as it would be nicer if this could be done without so much boilerplate.)

  • joachim committed 0e8165c on 8.x-2.x
    Issue #2659860: Fixed clearing of title by adding a 'title_tabs' region.
    
joachim’s picture

Version: 8.x-2.x-dev » 8.x-1.x-dev
Status: Active » Patch (to be ported)