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(styles): fix the auro capitalize function #151

Merged

Conversation

marnel-mangrubang
Copy link
Contributor

@marnel-mangrubang marnel-mangrubang commented Apr 20, 2023

Alaska Airlines Pull Request

This PR is to address the AuroDocSite failing to build with the use of version 4.3.0 of WCSS. Due to the addition of numbers in the $auro-spacing-options default value, the auro_capitalize function inside of utilityFunctions would throw an error because its always expecting the argument type to be string. This PR is to unblock another story on our board relating to the AuroDocSite repo.

Fixes: #148

Summary:

  • Adding a type check inside of auro_capitalize function to only capitalize if string type. If number type, return string version of that number without capitalizing.
  • Update third argument of auro_map-deep-get to always be string so that it can find the value of the matching string key from the collection of tokens.
  • Added additional tests to spacing.spec to account for number values.

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

@CLAassistant
Copy link

CLAassistant commented Apr 20, 2023

CLA assistant check
All committers have signed the CLA.

@marnel-mangrubang marnel-mangrubang linked an issue Apr 20, 2023 that may be closed by this pull request
@marnel-mangrubang marnel-mangrubang marked this pull request as ready for review April 20, 2023 22:56
@marnel-mangrubang marnel-mangrubang requested a review from a team as a code owner April 20, 2023 22:56
Copy link
Member

@blackfalcon blackfalcon left a comment

Choose a reason for hiding this comment

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

Looks great. My onlny nit-pick is to append the issue ID to the commit.

fix(styles): fix the auro capitalize function #148 

blackfalcon
blackfalcon previously approved these changes Apr 24, 2023
Copy link
Member

@blackfalcon blackfalcon left a comment

Choose a reason for hiding this comment

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

Everything works great! Thanks @marnel-mangrubang and @chethanayasa

I tested this with a local version of the Auro docsite and all green lights!

:shipit:

@blackfalcon
Copy link
Member

@marnel-mangrubang and @chethanayasa please make sure to agree to the CLA. It's part of the OSS agreement with this project.

@marnel-mangrubang marnel-mangrubang force-pushed the marnel-mangrubang/CapitalizeFunctionCausingBuildError/#148 branch from 21edb1f to cdfaac4 Compare April 24, 2023 17:11
@blackfalcon blackfalcon merged commit 7f75b30 into master Apr 25, 2023
@blackfalcon blackfalcon deleted the marnel-mangrubang/CapitalizeFunctionCausingBuildError/#148 branch April 25, 2023 17:03
@blackfalcon
Copy link
Member

🎉 This PR is included in version 4.3.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@blackfalcon blackfalcon added the released Completed work has been released label Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Completed work has been released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WCSS will not build in auro docsite
4 participants