-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dropdown): Dropdowns without DropdownMenuItem will get focused on…
… open (#1099)
- Loading branch information
1 parent
4f45985
commit 1c91ac3
Showing
8 changed files
with
421 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'react-magma-dom': patch | ||
--- | ||
|
||
fix(dropdown): Dropdowns without `DropdownMenuItem` will get focused on open. | ||
Fixes issue where these dropdowns could not be closed on Escape in Safari, and should be readable by screenreaders. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
name: Publish Next Patch | ||
on: | ||
push: | ||
branches: | ||
- dev-patch | ||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
check-latest: true | ||
- name: Check Node version | ||
run: node -v | ||
- name: Update NPM version | ||
run: npm install -g "npm@^7.6.3" | ||
- name: Install | ||
run: npm ci | ||
- name: Test | ||
run: npm test | ||
- name: Coverage | ||
uses: codecov/codecov-action@v1 | ||
- name: Configure NPM | ||
run: | | ||
git config --global user.name 'github-bot' | ||
git config --global user.email '[email protected]' | ||
echo //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }} > .npmrc | ||
- name: Check if Prerelease | ||
id: check_files | ||
uses: andstor/file-existence-action@v1 | ||
with: | ||
files: ".changeset/pre.json" | ||
- name: Enter Prerelease Mode | ||
if: steps.check_files.outputs.files_exists == 'false' | ||
run: | | ||
npm run version:prerelease | ||
git add .changeset/pre.json | ||
- name: Publish | ||
run: | | ||
npm run version:pkgs | ||
git commit -am "chore: enter prerelease mode" | ||
npm run release | ||
git push --follow-tags | ||
- name: Get Alias | ||
id: info | ||
run: | | ||
echo "::set-output name=alias::$(npm run --silent getAlias)" | ||
echo "::set-output name=version::$(npm run --silent getVersion)" | ||
- name: Build Docs | ||
run: npm run build:docs | ||
- name: Build Storybook | ||
run: npm run build:storybook | ||
- name: Deploy Docs to Netlify | ||
uses: nwtgck/[email protected] | ||
with: | ||
publish-dir: './website/react-magma-docs/public' | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
deploy-message: 'Deploy from GitHub Actions' | ||
enable-pull-request-comment: true | ||
enable-commit-comment: true | ||
overwrites-pull-request-comment: true | ||
alias: next-patch | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | ||
- name: Deploy Dev Storybook to Netlify | ||
uses: nwtgck/[email protected] | ||
with: | ||
publish-dir: './storybook-static' | ||
production-branch: patch-3.x.x | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
enable-pull-request-comment: true | ||
enable-commit-comment: true | ||
overwrites-pull-request-comment: false | ||
alias: storybook-preview-dev-patch | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
1c91ac3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 Deployed on https://next-patch--upbeat-sinoussi-f675aa.netlify.app
1c91ac3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 Deployed on https://storybook-preview-dev-patch--upbeat-sinoussi-f675aa.netlify.app