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

feat: add spacing between icon and text #164 #169

Closed
wants to merge 1 commit into from

Conversation

leeejune
Copy link
Contributor

@leeejune leeejune commented Aug 17, 2022

Alaska Airlines Pull Request

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes: #164

Summary:

Please summarize the scope of the changes you have submitted, what the intent of the work is and anything that describes the before/after state of the project.

Added xxs spacing between text and icon. Also applied flex-box to use the gap attribute.

Type of change:

Please delete options that are not relevant.

  • New capability
  • Revision of an existing capability
  • Infrastructure change (automation, etc.)
  • Other (please elaborate)

Checklist:

  • My update follows the CONTRIBUTING guidelines of this project
  • I have performed a self-review of my own update

By submitting this Pull Request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Pull Requests will be evaluated by their quality of update and whether it is consistent with the goals and values of this project. Any submission is to be considered a conversation between the submitter and the maintainers of this project and may require changes to your submission.

Thank you for your submission!

-- Auro Design System Team

@leeejune leeejune requested a review from blackfalcon August 17, 2022 23:33
@leeejune leeejune self-assigned this Aug 17, 2022
@leeejune leeejune linked an issue Aug 17, 2022 that may be closed by this pull request
@leeejune leeejune marked this pull request as ready for review August 17, 2022 23:34
Comment on lines +110 to +121
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
gap: var(--auro-size-xxs);
Copy link
Member

@blackfalcon blackfalcon Aug 22, 2022

Choose a reason for hiding this comment

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

By making this selector display:flex the element now appears as a block element. Buttons by default are inline-block elements. I do not see changing the display type of an element as a reasonable outcome for gaining space between text and an icon used as content.

You can create a selector that will target auro-icon directly and add a margin as needed. This will not have a negative effect on the display type of the element.

Also, I would argue that this is not a feature add, but a bug correction. Please update feat to fix in the commit message.

Copy link
Member

Choose a reason for hiding this comment

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

FYI... it is super helpful, especially with visual changes to have a before and after screenshot for reference when reviewing the PR.

This also applied to the issues themselves. Giving the reviewer visual context of the pending change is super helpful.

Copy link
Member

Choose a reason for hiding this comment

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

The downside to the margin approach is the we have to know whether the icon is to the left or right of the text.

That's a good call out on the inline-block thing. Would inline-flex behave similar to inline-block?

@blackfalcon blackfalcon changed the base branch from master to v6.4-rc August 22, 2022 20:32
@blackfalcon blackfalcon force-pushed the junelee/addSpacing/#164 branch from 3d8be81 to 942229e Compare August 23, 2022 21:25
@blackfalcon
Copy link
Member

Moved work to #168

@blackfalcon blackfalcon deleted the junelee/addSpacing/#164 branch September 13, 2022 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add spacing between icon and text in button
3 participants