Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
':eyes: needs review':
- 'packages/**/*'
- changed_files:
- 'packages/**/*'
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,20 @@ on:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
libraries:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]
node-version: [22.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -50,7 +50,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -64,4 +64,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v3
7 changes: 4 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
testing:
Expand All @@ -13,12 +14,12 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [22.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/labeller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ name: 'Label PR'
on:
pull_request:
types: [opened, reopened, ready_for_review]
workflow_dispatch:

jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v2
- uses: actions/labeler@v5
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
7 changes: 4 additions & 3 deletions .github/workflows/libby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,20 @@ on:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]
node-version: [22.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [22.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
testing:
Expand All @@ -13,12 +14,12 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [22.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install
Expand Down
3 changes: 3 additions & 0 deletions .turbo/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"baseBranch": "origin/main"
}
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@

## 7.2.7 (2025-07-09)

#### Features
* `design-tokens`, `matchbox`, `matchbox-css`, `matchbox-icons`, `matchbox-media`, `next-template-matchbox`, `cra-template-matchbox`
* [#1124](https://github.com/SparkPost/matchbox/pull/1124) TASK-10510 - bump version of Node.js to 22.x ([@dkoerichbird](https://github.com/dkoerichbird))

#### Committers: 1
- Doug Koerich ([@dkoerichbird](https://github.com/dkoerichbird))

## 7.2.0 (2022-07-18)

#### Features
Expand Down
6 changes: 6 additions & 0 deletions cypress/integration/Drawer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,26 @@ describe('Drawer component', () => {
it('traps focus', () => {
cy.wait(500); // waits for Drawer to enter
cy.get('body').tab();
cy.focused().then($el => { console.log('FOCUSED ELEMENT:', $el[0]); });
cy.focused().should('have.text', 'Close');
cy.focused().tab();
cy.focused().then($el => { console.log('FOCUSED ELEMENT:', $el[0]); });
cy.focused().should('have.text', 'Button 1');
cy.focused().tab();
cy.focused().then($el => { console.log('FOCUSED ELEMENT:', $el[0]); });
cy.focused().should('have.text', 'Button 2');
cy.focused().tab();
cy.focused().then($el => { console.log('FOCUSED ELEMENT:', $el[0]); });
cy.focused().should('have.text', 'Close');
});

it('returns focus on close', () => {
cy.wait(500); // waits for Drawer to enter
cy.get('body').tab();
cy.focused().then($el => { console.log('FOCUSED ELEMENT:', $el[0]); });
cy.focused().should('have.text', 'Close');
cy.get('body').type('{esc}');
cy.focused().then($el => { console.log('FOCUSED ELEMENT:', $el[0]); });
cy.focused().should('have.text', 'On the right');
});
});
6 changes: 3 additions & 3 deletions libby/scss.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@import '~@sparkpost/design-tokens/tokens';
@use '~@sparkpost/design-tokens/tokens';

.green {
background: color(green, 400);
background: get-color(green, 400);
}

.white {
background: color(white);
background: get-color(white);
}
Loading
Loading