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

Move theming support from Beta to Main #216

Merged
merged 23 commits into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
847630d
fix: adjust shape of UI for a11y UI 209
blackfalcon Jul 10, 2024
2b8f8a2
chore(release): 3.6.1-beta.1 [skip ci]
semantic-release-bot Jul 16, 2024
2c89f15
feat(theme): update styles to support themeing
jason-capsule42 Jul 11, 2024
cc157e0
ci: update husky config for version 9
jason-capsule42 Jul 18, 2024
8de76aa
refactor: spelling and syntax cleanup
jason-capsule42 Jul 19, 2024
bda2823
chore(release): 3.7.0-beta.1 [skip ci]
semantic-release-bot Jul 19, 2024
0181399
perf: use icon element versioning
jason-capsule42 Jul 20, 2024
84c44c8
chore(release): 3.7.0-beta.2 [skip ci]
semantic-release-bot Jul 20, 2024
92e2112
perf: update icon and all other dependencies
jordanjones243 Aug 26, 2024
f69e78e
chore(release): 3.7.0-beta.3 [skip ci]
semantic-release-bot Aug 26, 2024
a52c27c
perf: update dependencies
jordanjones243 Sep 17, 2024
1a17393
chore(release): 3.7.0-beta.4 [skip ci]
semantic-release-bot Sep 17, 2024
c430712
feat: add component name as attribute #219
jordanjones243 Sep 17, 2024
87ba85a
perf: refactor custom component registration config
jordanjones243 Sep 17, 2024
bce82b9
chore(release): 3.7.0-beta.5 [skip ci]
semantic-release-bot Sep 17, 2024
b091f5b
perf: point to library scripts for build process
jordanjones243 Sep 18, 2024
23ee1bc
docs: remove beta releases from CHANGELOG
jordanjones243 Sep 18, 2024
51f15ec
chore(release): 3.7.0-beta.6 [skip ci]
semantic-release-bot Sep 18, 2024
d4ff8a7
docs: remove beta from CHANGELOG
jordanjones243 Sep 19, 2024
675600f
perf: update dependencies
jordanjones243 Sep 24, 2024
2964a35
perf: sync package and package-lock
jordanjones243 Sep 24, 2024
b22e0db
chore(release): 4.0.0-beta.1 [skip ci]
semantic-release-bot Sep 24, 2024
91df691
docs: remove beta release from changelog
jordanjones243 Sep 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions .eslintrc

This file was deleted.

3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit "$1"
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

./node_modules/.bin/npm-run-all preCommit test linters postinstall
10 changes: 10 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"cSpell.words": [
"alaskaair",
"csspart",
"noncomponent",
"ondark",
"referrerpolicy",
"WCSS"
]
}
15 changes: 3 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,6 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](

<!-- AURO-GENERATED-CONTENT:END -->

### CSS Custom Property fallbacks

<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/cssFallbacks.md) -->
[CSS custom properties](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties) are [not supported](https://auro.alaskaair.com/support/custom-properties) in older browsers. For this, fallback properties are pre-generated and included with the npm.

Any update to the Auro Design Tokens will be immediately reflected with browsers that support CSS custom properties, legacy browsers will require updated components with pre-generated fallback properties.

<!-- AURO-GENERATED-CONTENT:END -->

### Define dependency in project component

<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/componentImportDescription.md) -->
Expand Down Expand Up @@ -104,9 +95,9 @@ In cases where the project is not able to process JS assets, there are pre-proce
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/bundleUseModBrowsers.md) -->

```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.3.1/dist/tokens/CSSCustomProperties.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/[email protected].0/dist/bundled/essentials.css" />
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-hyperlink@3.6.0/dist/auro-hyperlink__bundled.js" type="module"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.9.2/dist/tokens/CSSCustomProperties.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/[email protected].2/dist/bundled/essentials.css" />
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-hyperlink@4.0.0-beta.1/dist/auro-hyperlink__bundled.js" type="module"></script>
```

<!-- AURO-GENERATED-CONTENT:END -->
Expand Down
2 changes: 2 additions & 0 deletions apiExamples/basic-ondark.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<auro-hyperlink ondark>No href supplied</auro-hyperlink><br>
Welcome to <auro-hyperlink ondark href="https://www.alaskaair.com">Alaska Airlines</auro-hyperlink>.
11 changes: 11 additions & 0 deletions apiExamples/cta-ondark.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<auro-hyperlink type="cta" ondark href="https://www.alaskaair.com">CTA Button</auro-hyperlink>
<auro-hyperlink type="cta" ondark href="https://www.alaskaair.com" target="_blank" >CTA Button</auro-hyperlink>
<auro-hyperlink type="cta" ondark href="https://www.portseattle.org/sea-tac" target="_blank" >CTA Button</auro-hyperlink>

<auro-hyperlink type="cta" ondark secondary href="https://www.alaskaair.com">CTA Button</auro-hyperlink>
<auro-hyperlink type="cta" ondark secondary href="https://www.alaskaair.com" target="_blank" >CTA Button</auro-hyperlink>
<auro-hyperlink type="cta" ondark secondary href="https://www.portseattle.org/sea-tac" target="_blank" >CTA Button</auro-hyperlink>

<auro-hyperlink type="cta" ondark tertiary href="https://www.alaskaair.com">CTA Button</auro-hyperlink>
<auro-hyperlink type="cta" ondark tertiary href="https://www.alaskaair.com" target="_blank" >CTA Button</auro-hyperlink>
<auro-hyperlink type="cta" ondark tertiary href="https://www.portseattle.org/sea-tac" target="_blank" >CTA Button</auro-hyperlink>
18 changes: 18 additions & 0 deletions apiExamples/external-ondark.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Example link with
<auro-hyperlink
ondark
target="_blank"
href="https://www.alaskaair.com">
external target
</auro-hyperlink>
but same domain

<br>
Example link with
<auro-hyperlink
ondark
target="_blank"
href="https://www.portseattle.org/sea-tac">
external target
</auro-hyperlink>
with external domain
9 changes: 9 additions & 0 deletions apiExamples/external-referrer-ondark.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Example link with
<auro-hyperlink
ondark
target="_blank"
referrerpolicy
href="https://www.portseattle.org/sea-tac">
external target
</auro-hyperlink>
, external domain with referrerpolicy attribute
9 changes: 9 additions & 0 deletions apiExamples/navPattern-ondark.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<auro-hyperlink ondark href="/last" type="nav">
<auro-icon ondark category="interface" name="chevron-left" customColor style="line-height: 1"></auro-icon>
Click here to go back
</auro-hyperlink>

<auro-hyperlink ondark href="/next" type="nav">
Click here to go forward
<auro-icon ondark category="interface" name="chevron-right" customColor style="line-height: 1"></auro-icon>
</auro-hyperlink>
6 changes: 6 additions & 0 deletions apiExamples/navStyle-ondark.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<auro-hyperlink
ondark
type="nav"
href="https://www.alaskaair.com">
Navigation style link
</auro-hyperlink>
1 change: 1 addition & 0 deletions apiExamples/roleButton-ondark.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<auro-hyperlink ondark href="http://www.alaskaair.com" role="button" id="roleButton-ondark">Cancel button</auro-hyperlink>
7 changes: 7 additions & 0 deletions apiExamples/roleButton.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
export function roleButtonExample() {
const roleButton = document.getElementById('roleButton');
const roleButtonOndark = document.getElementById('roleButton-ondark');

roleButton.addEventListener('click', () => {
alert(`You clicked the role button!`);
});

roleButton.addEventListener('keydown', handleKeyPress);

roleButtonOndark.addEventListener('click', () => {
alert(`You clicked the role button!`);
});

roleButtonOndark.addEventListener('keydown', handleKeyPress);
}

function handleKeyPress(event) {
Expand Down
5 changes: 5 additions & 0 deletions demo/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/tokens/CSSCustomProperties.css">
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
<style>
.exampleWrapper--ondark {
color: var(--ds-color-text-primary-inverse);
}
</style>
</head>
<body class="auro-markdown">
<main></main>
Expand Down
Loading