Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(data-table): correct padding for batch action buttons #5413

Merged

Conversation

janhassel
Copy link
Member

In the Sketch kit and on the carbon website, batch action buttons in the DataTable have an 8px gap between text and button (effectively using the same spacing as a ghost button). The carbon-components styling currently treats the spacing as a normal primary button.

Changelog

Changed

  • Use $button-padding-ghost for buttons in .bx--action-list
    • Set icon in button to position: static

Testing / Reviewing

  1. View react storybook
  2. Check "DataTable -> with batch actions"
  3. Select a variable

Resources

Screenshot from https://www.carbondesignsystem.com/components/data-table/usage#multi-select-batch-action
image

Screenshot from 7.9.3 react storybook
image

@janhassel janhassel requested a review from a team as a code owner February 21, 2020 15:06
@ghost ghost requested review from aledavila and dakahn February 21, 2020 15:06
@emyarod emyarod requested review from a team and designertyler and removed request for a team February 21, 2020 15:12
@netlify
Copy link

netlify bot commented Feb 21, 2020

Deploy preview for carbon-components-react ready!

Built with commit 2c838ae

https://deploy-preview-5413--carbon-components-react.netlify.com

@netlify
Copy link

netlify bot commented Feb 21, 2020

Deploy preview for carbon-elements ready!

Built with commit 2c838ae

https://deploy-preview-5413--carbon-elements.netlify.com

Copy link
Contributor

@designertyler designertyler left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

Copy link
Contributor

@asudoh asudoh left a comment

Choose a reason for hiding this comment

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

LGTM 👍 - Thanks @janhassel!

@asudoh asudoh merged commit b3e0b35 into carbon-design-system:master Feb 24, 2020
@janhassel janhassel deleted the data-table-toolbar-buttons branch April 2, 2020 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants