When a user publishes a node, comment settings selected as 'Open' then after saving the node, under 'Add new comment' the buttons Save and Preview doesn't have spacing in between them.

Suggestion:
You need to add:

.btn-success {
margin-right: 10px;
}

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bandanasharma created an issue. See original summary.

pifagor’s picture

Assigned: Unassigned » pifagor
Status: Active » Needs work
sneha_surve’s picture

Assigned: pifagor » sneha_surve
sneha_surve’s picture

Assigned: sneha_surve » Unassigned
Status: Needs work » Needs review
FileSize
290.49 KB

Patch applied as per the suggestion.

markhalliwell’s picture

Status: Needs review » Needs work

The selector is too generic (i.e. applies to all .btn-success elements). It should instead probably be something like:

.form-actions .btn

This way it only applies to buttons inside the .form-actions wrapper and applies to all buttons, not just .btn-success (since there could be many types of buttons and more than just one or two).

Also, please do not provide a patch that modifies the compiled CSS. These are automatically generated as part of the maintainers grunt compile task from the less source files.

markhalliwell’s picture

Title: There should be spacing between Save and Preview button » Missing space between buttons in .form-actions
pifagor’s picture

Status: Needs work » Needs review
FileSize
728 bytes
markhalliwell’s picture

Status: Needs review » Needs work

It should just be:

// Form action buttons.
.form-actions .btn {
  margin-right: 10px;
}

There's no need to nest when there's nothing else in there and it shouldn't be .btn-success.

pifagor’s picture

Status: Needs work » Needs review
FileSize
706 bytes

new patch

  • markcarver committed 2428952 on 8.x-3.x authored by pifagor
    Issue #2818253 by pifagor, sneha_surve, bandanasharma: Missing space...
  • markcarver committed 8220b4b on 8.x-3.x
    Automated commit: grunt compile (CSS)
    
    Issue #2818253 by pifagor,...
markhalliwell’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

pifagor’s picture