Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

feat(button): core flat-inline action #5962

Merged
merged 1 commit into from May 19, 2021

Conversation

bbogdanov
Copy link
Contributor

Closes #5775

We also needed a way to have a button with no padding on the right and left this one is giving us just what we need.

Signed-off-by: Bogdan Bogdanov bbogdanov@vmware.com

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • [] If applicable, have a visual design approval

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • clarity.design website / infrastructure changes
  • Other... Please describe:

What is the current behavior?

Issue Number: #5775

What is the new behavior?

Having a flat button with no padding on left and right

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

--background: #{$cds-alias-object-opacity-0};
--border-color: #{$cds-alias-object-opacity-0};
--color: #{$cds-alias-status-info};
--box-shadow-color: #{$cds-alias-object-opacity-0};
}

:host([action='flat-inline']) {
--height: auto;
--padding: 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we only wanted to remove padding from the left and the right. Why would we remove all padding here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The buttons in the card footer are adding additional bottom space and it is not possible to remove that space without an additional token. Like we do with --card-remove-margin.

--height: auto will help us accomplish to remove that space and have an even padding that won't make the footer bigger than what's needed.

Also I and Cory discuss that and we thought having a --height: auto will bring more inline feeling.

Closes vmware-archive#5775

We also needed a way to have a button with no padding on the right and left this one is giving us just what we need.

Signed-off-by: Bogdan Bogdanov <bbogdanov@vmware.com>
@bbogdanov bbogdanov merged commit 69abee9 into vmware-archive:next May 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a variant to core flat buttons to align correctly when sitting left or right in a component
3 participants