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(themes): add component level tokens for themeing #116

Merged
merged 4 commits into from
Jun 18, 2024

Conversation

jason-capsule42
Copy link
Member

@jason-capsule42 jason-capsule42 commented May 29, 2024

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.

Resolves: #112

Summary:

All token work is updated to support the new component theme infrastructure.

advisory was removed as part of the design switch to warning only.

The additional variants were added.

varient examples were updated to better show each varient in a recognizable way

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

Verification

  • No linter issues
  • All automated tests pass
  • New Tier 3 component token exists
  • Advisory variant is removed
  • API Page "Theme" section is valid

DEFAULT

  • default variant renders correctly
  • accent variant renders correctly
  • disabled variant renders correctly
  • emphasis variant renders correctly
  • error variant renders correctly
  • info variant renders correctly
  • secondary variant renders correctly
  • subtle variant renders correctly
  • success variant renders correctly
  • tertiary variant renders correctly
  • warning variant renders correctly

INVERSE

  • default variant renders correctly
  • accent variant renders correctly
  • disabled variant renders correctly
  • emphasis variant renders correctly
  • error variant renders correctly
  • info variant renders correctly
  • secondary variant renders correctly
  • subtle variant renders correctly
  • success variant renders correctly
  • tertiary variant renders correctly
  • warning variant renders correctly

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

@jason-capsule42 jason-capsule42 force-pushed the jbaker/customTokenPoc branch from 78e7180 to 6598e33 Compare May 29, 2024 01:05
@jason-capsule42 jason-capsule42 linked an issue May 29, 2024 that may be closed by this pull request
2 tasks
@jason-capsule42 jason-capsule42 self-assigned this May 29, 2024
@jason-capsule42 jason-capsule42 force-pushed the jbaker/customTokenPoc branch 4 times, most recently from e5bf598 to b4741e3 Compare May 29, 2024 01:36
@jason-capsule42 jason-capsule42 marked this pull request as ready for review May 29, 2024 01:37
@jason-capsule42 jason-capsule42 requested a review from a team as a code owner May 29, 2024 01:37
src/auro-icon.js Show resolved Hide resolved
src/tokens.scss Show resolved Hide resolved
@jason-capsule42 jason-capsule42 force-pushed the jbaker/customTokenPoc branch 2 times, most recently from 0584284 to 3c74cf1 Compare May 29, 2024 16:11
@jason-capsule42 jason-capsule42 force-pushed the jbaker/customTokenPoc branch 2 times, most recently from acc10e6 to 10d2ba0 Compare May 30, 2024 04:26
index.js Outdated Show resolved Hide resolved
apiExamples/visualState.html Outdated Show resolved Hide resolved
jason-capsule42 and others added 3 commits June 17, 2024 16:36
Advisory variant has been removed. Warning variant is the intended replacement.
https://github.com/orgs/AlaskaAirlines/discussions/556

This code diff represents changes made to multiple files in a Git repository. Let's go through the changes step by step:

1. **.github/settings.yml**:
   - Line 35: The `master` branch is modified. Instead of just specifying the branch name, a YAML anchor
     (`&default_protection`) is introduced to define a set of branch protection settings that can be reused.
   - Line 46: The `require_code_owner_reviews` setting for the `master` branch is changed from `false` to `true`.
     This means that code owners must review and approve pull requests before they can be merged into the `master` branch.
   - Line 56: The `contexts` setting for the `master` branch is modified. Two additional status checks, `"test (20.x)"`
     and `"license/cla"`, are added to the existing checks `"test (18.x)"`. These status checks must pass before a
     pull request can be merged into the `master` branch.
   - Lines 61-64: Two more branches, `beta` and `master`, are added with the same branch protection settings as
     the `master` branch.

2. **.github/workflows/testPublish.yml**:
   - Line 28: The condition for the `release` job is modified. Previously, it would only trigger on a push to the
     `master` branch. Now, it will also trigger on a push to the `beta` branch.

3. **package.json**:
   - Line 96: The `branches` array in the `release` configuration is modified. The `master` branch is still included,
     but now the `beta` branch is also included with an additional property `prerelease` set to `true`. This indicates
     that releases from the `beta` branch should be treated as pre-releases.

These changes introduce branch protection settings, status checks, and release configurations for the `master` and `beta`
branches in the repository. The modifications ensure that code owners review and approve pull requests, and that specific
status checks pass before merging into these branches. Additionally, the `release` job is triggered not only on the `master`
branch but also on the `beta` branch, treating releases from the `beta` branch as pre-releases.

Changes to be committed:
modified:   .github/settings.yml
modified:   .github/workflows/testPublish.yml
modified:   package.json
This code diff shows changes made to the `.github/workflows/testPublish.yml`
and `package.json` files. Let's break it down:

In the `.github/workflows/testPublish.yml` file:
- Line 28: A new step has been added under the `jobs.build` section. It runs
the command `npm run build:test`. This step is responsible for building the
project specifically for testing purposes.

- Line 42: The existing `npm run build` command under the `jobs.release`
section has been replaced with `npm run build:release`. This change modifies
the build process for the release job, indicating that it should build
the project specifically for release purposes.

In the `package.json` file:
- Line 144: The `scripts` section has been modified. The `build` script has
been updated to include only the necessary build steps for Sass, rendering,
and generating types. The `build:test` script has been added to run tests
and linters. The `build:release` script has been added to include additional
build steps for API documentation, bundling, and post-installation tasks.

See Discussion: https://github.com/orgs/AlaskaAirlines/discussions/523

Changes to be committed:
modified:   .github/workflows/testPublish.yml
modified:   package.json
@blackfalcon blackfalcon force-pushed the jbaker/customTokenPoc branch from 10d2ba0 to ec7d241 Compare June 17, 2024 23:37
@blackfalcon blackfalcon changed the base branch from master to beta June 17, 2024 23:38
@jason-capsule42 jason-capsule42 force-pushed the jbaker/customTokenPoc branch 2 times, most recently from 5a1bf93 to 5a0547a Compare June 18, 2024 01:48
@jason-capsule42 jason-capsule42 force-pushed the jbaker/customTokenPoc branch from 5a0547a to 8a05394 Compare June 18, 2024 01:54
@jason-capsule42 jason-capsule42 merged commit c4964cc into beta Jun 18, 2024
1 check passed
@jason-capsule42 jason-capsule42 deleted the jbaker/customTokenPoc branch June 18, 2024 02:41
@blackfalcon blackfalcon restored the jbaker/customTokenPoc branch June 18, 2024 14:35
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.

Update color tokens for theming support
3 participants