Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295651

Vertical tab styling for tabs should not be applied when JavaScript is disabled and no tabs are present

$
0
0

Problem/Motivation

When JavaScript is disabled, a giant gap to the left of the vertical tabs appears. There are a few styles in vertical-tabs.css that need to be scoped to a .js context.

Proposed resolution

Scope properties such as margin, border and padding to a .js context.

Before the CSS fix

A screenshot of the vertical tabs on an edit form. JavaScript is disabled. There is a gap to the left of the vertical tabs.

After the CSS fix.

A screenshot of the vertical tabs on an edit form. JavaScript is disabled. There is no gap to the left of the vertical tabs. The inspector is open and the correct CSS is shown.

This might be the CSS fix.

.vertical-tabs-panes {
  background-color: #fcfcfa;
}

html.js .vertical-tabs-panes {
  margin: 0 0 0 240px;
  padding: 10px 15px 10px 15px;
  border-left: 1px solid #a6a5a1;
}
AttachmentSizeStatusTest resultOperations
Screenshot_6_13_13_11_14_AM.png165.2 KBIgnoredNoneNone
Screenshot_6_13_13_11_23_AM.png159.9 KBIgnoredNoneNone

Viewing all articles
Browse latest Browse all 295651


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>