Suggested commit message:

git commit -m 'Issue #2582911 by kostyashupenko, snehi, Sagar Ramgade, emma.maria, MRPRAVIN, rokkieweb, rachel_norfolk: Styling of buttons breaks in Blocks UI whilst using Bartik as an administration theme'

Problem/Motivation

Styling of button breaks while using Bartik as adminstration theme with the Chrome browser. Please have a look at "place block" button in the attached screenshots and note the missing end curve.
“Before,

Note that this issue is only concerned with the trailing round edge of the buttons, not any other UI issues using the Bartik theme as an administration theme.

Proposed resolution

css update to work better with Chrome.

User interface changes

CSS change to correctly render buttons in Chrome.

after #21
after screenshot Chrome

API changes

none.

Data model changes

none - just css.

CommentFileSizeAuthor
#50 Screen Shot 2016-03-30 at 21.37.27.png115.83 KBemma.maria
#49 interdiff-21-49.txt460 bytessnehi
#49 styling_of_button-2582911-49.patch420 bytessnehi
#46 goodall3.png38.35 KBemma.maria
#46 patchall3.png27.06 KBemma.maria
#46 beforeall3.png26.45 KBemma.maria
#46 goodsaveblocks.png32.63 KBemma.maria
#46 goodpreview.png31.51 KBemma.maria
#46 gooddelete.png26.09 KBemma.maria
#46 patchsaveblocks.png35.4 KBemma.maria
#46 patchpreview.png33.04 KBemma.maria
#46 patchdelete.png26.14 KBemma.maria
#46 beforesaveblocks.png32.07 KBemma.maria
#46 beforedelete.png24.28 KBemma.maria
#46 beforepreview.png31.9 KBemma.maria
#46 badplace.png15.06 KBemma.maria
#38 after.png10.01 KBSakthivel M
#38 before.png9.95 KBSakthivel M
#38 styling_buttoin_overflow.patch660 bytesSakthivel M
#35 Block-layout-after.png331.58 KBManjit.Singh
#35 Block-layout-before.png317.92 KBManjit.Singh
#32 screenshot chrome before.png93.61 KBrokkieweb
#32 Screenshot firefox before .png126.57 KBrokkieweb
#32 screen shot chrome after.png96.63 KBrokkieweb
#32 screen shot firefox after.png126.84 KBrokkieweb
#26 blocklayout.png46.92 KBMRPRAVIN
d8-block-config.png43.28 KBMiranda Jose
#2 drupal_bartik_button_styling-2582911-D8.patch396 bytesSagar Ramgade
#5 Screen Shot 2015-11-04 at 22.01.14.png45.48 KBemma.maria
#15 2582911-2-before.png18.41 KBstar-szr
#18 styling_of_button-2582911-18.patch497 byteskostyashupenko
#18 interdiff.txt464 byteskostyashupenko
#18 Screenshot from 2016-02-24 11-36-18.png17.21 KBkostyashupenko
#18 Screenshot from 2016-02-24 11-37-22.png7.58 KBkostyashupenko
#19 before #18.png61.98 KBceaucari
#19 after #18.png61.39 KBceaucari
#21 #21 chrome.png7.34 KBkostyashupenko
#21 #21 ff.png7.11 KBkostyashupenko
#21 styling_of_button-2582911-21.patch497 byteskostyashupenko
#21 interdiff.txt427 byteskostyashupenko
#24 placeblockd8.1.xafterpatch.png28.42 KBMRPRAVIN
#24 placeblockd8.1.xbeforepatch.png27.87 KBMRPRAVIN
#24 AfterPatchd8.0.png27.62 KBMRPRAVIN
#24 BeforePatchd8.0.png27.42 KBMRPRAVIN
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Miranda Jose created an issue. See original summary.

Sagar Ramgade’s picture

Status: Active » Needs review
FileSize
396 bytes

Adding display: inline-block fixes the issue, patch attached.

Miranda Jose’s picture

Thanks Sagar.
Patch in #2 fixes the issue with buttons.

Bojhan’s picture

Version: 8.0.0-beta16 » 8.0.x-dev
Assigned: Unassigned » emma.maria
emma.maria’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community
FileSize
45.48 KB

Thanks @Miranda Jose for spotting this bug and thanks @Sagar Ramgade for the patch. I can confirm the patch fixes the visual issue.

emma.maria’s picture

Assigned: emma.maria » Unassigned

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 2: drupal_bartik_button_styling-2582911-D8.patch, failed testing.

Miranda Jose’s picture

The above issue with patch should have been fixed in https://www.drupal.org/node/2618886.

nmeegama’s picture

The patch in #2 fixes this issue

nmeegama’s picture

Status: Needs work » Closed (fixed)
Sagar Ramgade’s picture

Status: Closed (fixed) » Needs review

@Miranda, issue mentioned in #8 seems unrelated. Could you please recheck this?

gnuget’s picture

Status: Needs review » Reviewed & tested by the community

Yup #8 is unrelated.

I tested this with Firefox, Chrome and Safari, looks good.

Miranda Jose’s picture

#8 was the reason behind failed patch testing.
Seems to be working with #2 now. Thanks for looking into it @Sagar

gnuget’s picture

ohh! good to know, I will run the tests again just to be sure

Thanks!

star-szr’s picture

Status: Reviewed & tested by the community » Needs work
FileSize
18.41 KB

I think we're missing something here. With this change the height of the button changes which makes things inconsistent, for example on the node edit form (in 8.1.x) the delete button is too large with this patch applied.

Before

After
Only local images are allowed.

emma.maria’s picture

gnuget’s picture

Issue tags: +Novice

I added the tag Novice.

kostyashupenko’s picture

Fixed sizes of .button class

Results here
button class
button class

ceaucari’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community
FileSize
61.98 KB
61.39 KB

Hey kostyashupenko, I reviewed and # 18 get's it wright except for 1px, see images attached
If you add to the class .button a margin-top: 1px; it will get completely aligned.

star-szr’s picture

Status: Reviewed & tested by the community » Needs work

So it sounds like this needs more work…

kostyashupenko’s picture

Status: Needs work » Needs review
FileSize
7.34 KB
7.11 KB
497 bytes
427 bytes

Sorry, @ceaucari, my bad. Now it looks ok on my side. Check screens below in FF and Chrome

chrome
ff

MRPRAVIN’s picture

Assigned: Unassigned » MRPRAVIN
Manjit.Singh’s picture

Status: Needs review » Needs work
FileSize
58.26 KB

@kostyashupenko Buttons are seems ok now ;) but the text is not inline. Please check the screenshot.

After:
blocks layout

MRPRAVIN’s picture

Status: Needs work » Needs review
FileSize
27.42 KB
27.62 KB
27.87 KB
28.42 KB

I tested this in Firefox and Chrome. without applying this patch itself for me "place block" looking good in Firefox. In chrome only am facing this problem. After applying this patch issue is not occurred. Looks good.

Manjit.Singh’s picture

Anybody facing problem the issues that i have mentioned above. This is in Mac - chrome

MRPRAVIN’s picture

FileSize
46.92 KB

After applying patch text is in inline for me.. Looks good. @Manjit.Singh which browser are you facing this problem??

MRPRAVIN’s picture

Oh in Mac... Let me check..

Thanks

MRPRAVIN’s picture

Hi Manjit.Singh,

I tested this in Mac am not facing this issue. for me it works good.

gnuget’s picture

I tested this as well and I couldn't reproduces the problem either, this works ok for me.

emma.maria’s picture

Assigned: MRPRAVIN » Unassigned
emma.maria’s picture

Assigned: Unassigned » emma.maria
Issue tags: +Needs issue summary update

The issue summary does not show the original bug of the issue.

This issue needs "Before" screenshots added to the Issue summary. The "Place block" buttons look broken and we do not have any screenshots - #24 has before screenshots that you can add to the summary.

Then we need manual testing on the patch in #24 with clear screenshots to show the issue is fixed and not caused any more errors.

Then this issue can be marked RTBC.

rokkieweb’s picture

From the recent git pull, we checked the issue. We recreate the problem and find the problem exist only in Chrome.We took a couple of screenshots before and after the patch both from Chrome and Firefox. After the patch, It seems that the issue is fixed.

before #21
before screenshot
before screenshot Firefox

after #21
after screenshot Chrome
after screenshot Firebox

rokkieweb’s picture

Assigned: emma.maria » Unassigned
Status: Needs review » Reviewed & tested by the community
rachel_norfolk’s picture

Issue summary: View changes

Slight tidy to issue summary.

Also - hokkieweb should really be mentioned in the commit - done a lot of work today on her first (of many!) ventures into the issue queue.

Manjit.Singh’s picture

FileSize
317.92 KB
331.58 KB

Looks good now for me as well. RTBC ++
screenshots attached.

Before
before

After
before

@emma Just one query from after screenshot that dotted line is slightly outside from the container :P

Is that ok ? or Is it already reported somewhere ?

rachel_norfolk’s picture

Looks to be the same location for the dotted line in both before and after screenshots to me. Maybe a new issue to raise?

gnuget’s picture

Yeah, the dotted line should have its own issue.

Removing some tags.

Sakthivel M’s picture

Status: Reviewed & tested by the community » Needs review
FileSize
660 bytes
9.95 KB
10.01 KB

Hi,
I have patched for Fixing the issue overflow dotted line in comment #35.

Before Applying patch

After Applying patch

Thanks
Sakthivel

rachel_norfolk’s picture

As discussed in #36 and agreed in #37, work on the dotted line should be in a new issue. We should continue this issue from the patch at #21.

Setting this back to RTBC and making the correct patch file appear.

Sakthivel - I have already created a new issue for you to attach your patch to. (If I do it, you might not get recognised!) - see https://www.drupal.org/node/2683433

emma.maria’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs issue summary update

Sorry to be picky but this issue still needs to show the original bug in the issue summary.

Then it should be super clear that we are only fixing the button and nothing else.
I want this to be clear to everyone and especially the core committer who needs to wade through a lot of sidetracking during this issue.

Also the patch to review and potentially commit is #21.

star-szr’s picture

Title: Styling of button breaks while using Bartik as administration theme theme » Styling of buttons breaks while using Bartik as an administration theme

Yup let's keep this focused, please and thanks :)

rachel_norfolk’s picture

Issue summary: View changes
Status: Needs work » Needs review

Further sorting of the Issue Summary

rachel_norfolk’s picture

Issue summary: View changes
Manjit.Singh’s picture

@Rachel_norfolk have you create an issue that i have mention in #35 ? or may i create ?

BQari’s picture

Issue summary: View changes
emma.maria’s picture

Title: Styling of buttons breaks while using Bartik as an administration theme » Styling of buttons breaks in Blocks UI whilst using Bartik as an administration theme
Issue summary: View changes
FileSize
15.06 KB
31.9 KB
24.28 KB
32.07 KB
26.14 KB
33.04 KB
35.4 KB
26.09 KB
31.51 KB
32.63 KB
26.45 KB
27.06 KB
38.35 KB

The aim of this issue was to fix the button's padding collapsing and the styling looking broken as a result.

The bug

 

 

The padding change included in the patch causes a visual regression on the current sizing of buttons in Bartik. The buttons end up bigger and also bigger than the things they sit next to, for eg. look at the Save, Preview and Delete buttons.

Before at HEAD.

Buttons are all 24.5px tall...

With patch

Buttons are 26px tall...

With patch #21 - the buttons are 26px tall everywhere.

Patch without the padding change


 
Buttons are again 24px tall...
 


 

Next steps

This issue should not introduce any visual regressions to elements indirectly involved in the issue. Therefore the padding change should not be applied to fix this bug.

Please can a follow up patch be created from #21 with the padding style *removed*? And then this issue will finally be RTBC! Thanks!

emma.maria’s picture

Status: Needs review » Needs work
Issue tags: -Needs issue summary update +CSS
emma.maria’s picture

Issue tags: +Novice
snehi’s picture

Done. Please review.

emma.maria’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community
FileSize
115.83 KB

Thanks @snehi for the final patch.
 

 
Buttons in the block UI are fixed, no regressions on other buttons. RTBC!

Suggested commit message:

git commit -m 'Issue #2582911 by kostyashupenko, snehi, Sagar Ramgade, emma.maria, MRPRAVIN, rokkieweb, rachel_norfolk: Styling of buttons breaks in Blocks UI whilst using Bartik as an administration theme'

star-szr’s picture

Version: 8.0.x-dev » 8.2.x-dev

This looks good, bumping to 8.2.x (UI change that could potentially have other effects, Bartik as admin theme should be rare) and will commit soon :)

  • Cottser committed 3e13553 on 8.2.x
    Issue #2582911 by kostyashupenko, snehi, Sagar Ramgade, emma.maria,...
star-szr’s picture

Status: Reviewed & tested by the community » Fixed

Committed 3e13553 and pushed to 8.2.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.