You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe this PR has created a problem by introducing $ExtraClass in LeftAndMain_ViewModeSelector.ss.
Because $ExtraClass is not always being passed in via include statements, the template parser will then look further up in scope and obtain $ExtraClass from parent objects. CMSMain_EditForm.ss is doing this from silverstripe/cms, and as such, the view mode selector receives the flexbox-area-grow class.
Good spotting. Would you be willing to create a PR to fix this? If so I'd be happy to review it.
I think the cleanest fix would be to change $ExtraClass in that template to something more specific to its purpose, such as $LeftMarginClass
I believe this PR has created a problem by introducing
$ExtraClass
inLeftAndMain_ViewModeSelector.ss
.Because
$ExtraClass
is not always being passed in via include statements, the template parser will then look further up in scope and obtain$ExtraClass
from parent objects.CMSMain_EditForm.ss
is doing this fromsilverstripe/cms
, and as such, the view mode selector receives theflexbox-area-grow
class.This has the following result in the CMS:
Before PR merge:
After PR merge:
Looks a bit naff. 😉
PRs
The text was updated successfully, but these errors were encountered: