AlaskaAirlines / auro-input

Custom HTML element for inputting string data in forms
https://auro.alaskaair.com/components/auro/input
Apache License 2.0
2 stars 4 forks source link

Apply latest token ds-auro-icon-size and update size to fix clipping issue on x icon #345 #346

Closed rmenner closed 2 weeks ago

rmenner commented 4 weeks ago

Alaska Airlines Pull Request

Type of change:

Please delete options that are not relevant.

Checklist:

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

Summary by Sourcery

Fix clipping issue on the 'x' icon by updating the icon size and apply the latest token 'ds-auro-icon-size' for consistent icon sizing.

Bug Fixes:

Enhancements:

sourcery-ai[bot] commented 4 weeks ago

Reviewer's Guide by Sourcery

This PR addresses a clipping issue with the 'x' icon by implementing the latest design token 'ds-auro-icon-size' and adjusting icon sizes. The changes primarily involve updating SCSS styles and removing redundant icon customizations in the JavaScript component.

Class diagram for AuroInput component changes

classDiagram
    class AuroInput {
        - customSize
        + category: String
        + name: String
        + customColor: Boolean
        + hidden: Boolean
    }
    note for AuroInput "Removed customSize attribute from icon elements"

File-Level Changes

Change Details Files
Implement new design token for icon sizing and adjust dimensions
  • Add --ds-auro-icon-size token with value of ds-size-300
  • Remove redundant width property since it's handled by the new token
  • Increase alert notification size from ds-size-200 to ds-size-300
  • Add --ds-auro-icon-size token with value of ds-size-200 for smaller icons
src/styles/notificationIcons.scss
Remove unnecessary icon customization attributes
  • Remove customSize attribute from error icon
  • Remove customSize attribute from password visibility icons
  • Remove customSize attribute from clear button icon
src/auro-input.js

Tips and commands #### Interacting with Sourcery - **Trigger a new review:** Comment `@sourcery-ai review` on the pull request. - **Continue discussions:** Reply directly to Sourcery's review comments. - **Generate a GitHub issue from a review comment:** Ask Sourcery to create an issue from a review comment by replying to it. - **Generate a pull request title:** Write `@sourcery-ai` anywhere in the pull request title to generate a title at any time. - **Generate a pull request summary:** Write `@sourcery-ai summary` anywhere in the pull request body to generate a PR summary at any time. You can also use this command to specify where the summary should be inserted. #### Customizing Your Experience Access your [dashboard](https://app.sourcery.ai) to: - Enable or disable review features such as the Sourcery-generated pull request summary, the reviewer's guide, and others. - Change the review language. - Add, remove or edit custom review instructions. - Adjust other review settings. #### Getting Help - [Contact our support team](mailto:support@sourcery.ai) for questions or feedback. - Visit our [documentation](https://docs.sourcery.ai) for detailed guides and information. - Keep in touch with the Sourcery team by following us on [X/Twitter](https://x.com/SourceryAI), [LinkedIn](https://www.linkedin.com/company/sourcery-ai/) or [GitHub](https://github.com/sourcery-ai).
CLAassistant commented 3 weeks ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
4 out of 5 committers have signed the CLA.

:white_check_mark: chrisfalaska
:white_check_mark: rmenner
:white_check_mark: jason-capsule42
:white_check_mark: jordanjones243
:x: semantic-release-bot
You have signed the CLA already but the status is still pending? Let us recheck it.

rmenner commented 2 weeks ago

@sourcery-ai review

rmenner commented 2 weeks ago

Closed and reopened as new PR #358 Had issues merging this PR