Open colemanw opened 7 years ago
@colemanw not sure what you mean by odd, please add a screenshot to clarify
Anyway the margin-bottom
is there because panels with contextual classes (.panel-primary
, .panel-success
, etc) have floating headings
As opposed to default panels (.panel-default
)
The same goes with panels with subheadings
@AkA84 Yes that is the problem. Panels with contextual classes are forced to have floating headings by the Shoreditch Theme. This is not standard bootstrap behavior.
I recommend you add a new panel-floating-heading class instead of forcing this on all panels.
Here's my problem. Trying to do a simple layout for the new Api4 Explorer using standard bootstrap styles:
I had to override the strange header styling to get all the panels to align correctly (the blue ones had extra spacing). I don't think I ought to have to do that. Again, if you want floating headers for a particular screen you're creating, that's fine. Just add a new panel-floating-header
class or similar. But I don't think it should be forced on all panels everywhere.
@colemanw it really depends on how we want the theme to look, i don't think it really matters whether the look is standard bootstrap or not: the component is indeed standard bootstrap, it's just the look of the component that is customized
The theme has been designed (as seen also in the styleguide) to have floating headers for all contextual panels, so that means that you (or whoever designed that page) are currently trying to force something that the theme does not support and wasn't intended to, although i see that if you want to horizontally align a default and a contextual panel, the floating header would prevent a correct alignment.
Of course this must lead to a conversation about what needs to change, the theme or the design of the page (that's why the theme is in early alpha btw!). cc @jamienovick @guanhuan
@jonscreat can we close this ticket as we now agree we shouldn't have any floating panel headings yes?
Or is there more to do?
@jamienovick This can be closed for me. Floating panel headers shouldn't be a thing anymore.
@AkA84 Do we need to do anything to get rid of floating panel headers or can this be closed?
Well we need to amend the theme's style, as it currently does have floating panel headers
This line of css makes panels look odd:
What is the reason for this extra space between the panel header and the panel content?