adobe / parliament-client-template

A template for client projects of the developer documentation site
Apache License 2.0
7 stars 18 forks source link

Remove bottom margin from tables #419

Closed Tomasito665 closed 6 months ago

Tomasito665 commented 6 months ago

Description

Related Issue

N/A

Motivation and Context

We noticed how Table components show a horizontal show bar always regardless of whether the table overflows its parent container. We fixed this in https://github.com/adobe/parliament-ui-components/pull/200 by setting overflow-x to 'auto'. Besides the horizontal scroll bar, we noticed that table components have a bottom margin. We think we should not add this margin to all tables because of the following reasons.

How Has This Been Tested?

Ran Parliament locally with this change - table bottom margin gone.

Before

image

After

image

Note how there still is some whitespace between the table and the second paragraph. That's not the table's bottom margin but the paragraph's top margin. See the video attached to the pull request description of https://github.com/adobe/parliament-ui-components/pull/200 for a more detailed demonstration.

Screenshots (if appropriate):

See previous section.

Types of changes

Checklist: