Skip to content

Commit 5ac2099

Browse files
committed
merge from next/fluentui
2 parents 43194e0 + d919752 commit 5ac2099

File tree

102 files changed

+1351
-15430
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+1351
-15430
lines changed

.github/workflows/next.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
node-version: [12.x]
18+
node-version: [16.x]
1919

2020
steps:
2121
- uses: actions/checkout@v2

.github/workflows/pr-clean-storybook.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
node-version: [12.x]
18+
node-version: [16.x]
1919

2020
steps:
2121
- uses: actions/checkout@v2

.github/workflows/pr-storybook.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
node-version: [12.x]
18+
node-version: [16.x]
1919

2020
steps:
2121
- uses: actions/checkout@v2
@@ -33,12 +33,11 @@ jobs:
3333
yarn storybook:build
3434
3535
- name: Deploy mgt.dev/next/pr/${{ github.event.number }} 🚀
36-
uses: JamesIves/github-pages-deploy-action@4.1.1
36+
uses: JamesIves/github-pages-deploy-action@v4.4.1
3737
with:
3838
branch: gh-pages
3939
folder: storybook-static
4040
target-folder: next/pr/${{ github.event.number }}
41-
token: ${{ secrets.ACCESS_TOKEN }}
4241

4342
- name: Comment PR
4443
uses: thollander/actions-comment-pull-request@v1

.github/workflows/pr.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
node-version: [12.x]
16+
node-version: [14.x, 16.x]
1717

1818
steps:
1919
- uses: actions/checkout@v2
@@ -24,6 +24,7 @@ jobs:
2424
- run: npm install -g yarn
2525
- run: yarn
2626
- run: node scripts/setVersion.js --next
27+
- run: yarn run tsc -v
2728
- run: yarn build
2829
- run: yarn run pack
2930

.github/workflows/push-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
strategy:
1919
matrix:
20-
node-version: [12.x]
20+
node-version: [16.x]
2121

2222
steps:
2323
- uses: actions/checkout@v2
@@ -42,7 +42,7 @@ jobs:
4242
if: needs.version.outputs.latest-version != needs.version.outputs.package-version
4343
strategy:
4444
matrix:
45-
node-version: [12.x]
45+
node-version: [14.x]
4646

4747
environment:
4848
name: release
@@ -80,7 +80,7 @@ jobs:
8080

8181
strategy:
8282
matrix:
83-
node-version: [12.x]
83+
node-version: [14.x]
8484

8585
steps:
8686
- uses: actions/checkout@v2
@@ -98,7 +98,7 @@ jobs:
9898
yarn storybook:build
9999
100100
- name: Deploy mgt.dev 🚀
101-
uses: JamesIves/github-pages-deploy-action@4.1.1
101+
uses: JamesIves/github-pages-deploy-action@v4.4.1
102102
with:
103103
branch: gh-pages
104104
folder: storybook-static

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
if: github.repository == 'microsoftgraph/microsoft-graph-toolkit'
1616
strategy:
1717
matrix:
18-
node-version: [12.x]
18+
node-version: [16.x]
1919

2020
steps:
2121
- uses: actions/checkout@v2

.github/workflows/storybook-v3.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Deploy next/fluentui storybook
5+
6+
on:
7+
push:
8+
branches: [next/fluentui]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
if: github.repository == 'microsoftgraph/microsoft-graph-toolkit'
14+
15+
strategy:
16+
matrix:
17+
node-version: [16.x]
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Use Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@v1
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
registry-url: 'https://registry.npmjs.org'
26+
27+
- name: Build 🛠
28+
run: |
29+
npm install -g yarn lerna
30+
yarn
31+
yarn build
32+
yarn storybook:build
33+
34+
- name: Deploy mgt.dev/next 🚀
35+
uses: JamesIves/[email protected]
36+
with:
37+
branch: gh-pages
38+
folder: storybook-static
39+
target-folder: next/v3
40+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/storybook.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
strategy:
1616
matrix:
17-
node-version: [12.x]
17+
node-version: [16.x]
1818

1919
steps:
2020
- uses: actions/checkout@v2
@@ -32,12 +32,12 @@ jobs:
3232
yarn storybook:build
3333
3434
- name: Deploy mgt.dev/next 🚀
35-
uses: JamesIves/github-pages-deploy-action@4.1.1
35+
uses: JamesIves/github-pages-deploy-action@v4.4.1
3636
with:
3737
branch: gh-pages
3838
folder: storybook-static
3939
target-folder: next
40-
clean-exclude: |
40+
clean-exclude: |
4141
pr
42-
fluentui
42+
v3
4343
token: ${{ secrets.GITHUB_TOKEN }}

.storybook/manager-head.html

Lines changed: 13 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -93,53 +93,6 @@
9393

9494
sidebarNode.insertBefore(usefulLinksContainer, sidebarNode.childNodes[1]);
9595

96-
const searchBox = document.querySelector(".search-field");
97-
if (searchBox) {
98-
searchBox.setAttribute("name", "Find Components");
99-
searchBox.setAttribute("aria-expanded", "false");
100-
101-
const searchInput = searchBox.querySelector("input");
102-
if (searchInput) {
103-
searchInput.addEventListener("mouseleave", addAriaExpanded("false"));
104-
searchInput.addEventListener("mouseout", addAriaExpanded("false"));
105-
searchInput.addEventListener("pointerleave", addAriaExpanded("false"));
106-
searchInput.addEventListener("pointerout", addAriaExpanded("false"));
107-
searchInput.addEventListener("click", addAriaExpanded("true"));
108-
searchInput.addEventListener("focusout", addAriaExpanded("false"));
109-
searchInput.addEventListener("focus", setListItemsAc11y);
110-
}
111-
}
112-
113-
function setListItemsAc11y() {
114-
const recentMenu = document.querySelector("#storybook-explorer-menu");
115-
if (recentMenu) {
116-
const firstLi = recentMenu.querySelector("li");
117-
if (firstLi) {
118-
firstLi.setAttribute("role", "heading");
119-
firstLi.setAttribute("aria-level", "2");
120-
}
121-
122-
const otherLis = recentMenu.querySelectorAll("li:not(:first-child)");
123-
if (otherLis && otherLis.length > 0) {
124-
for (let i = 0; i < otherLis.length; i++) {
125-
const li = otherLis[i];
126-
const liText = li.innerText;
127-
if (liText) {
128-
li.setAttribute("aria-label", liText.trim());
129-
}
130-
li.setAttribute("aria-hidden", "true");
131-
}
132-
}
133-
}
134-
}
135-
136-
function addAriaExpanded(value) {
137-
const searchBox = document.querySelector(".search-field");
138-
if (searchBox) {
139-
searchBox.setAttribute("aria-expanded", value);
140-
}
141-
}
142-
14396
const sidebarSubheading = document.getElementsByClassName("sidebar-subheading");
14497
if (sidebarSubheading) {
14598
for (let i = 0; i < sidebarSubheading.length; i++) {
@@ -157,6 +110,7 @@
157110
}
158111
}
159112
}
113+
160114
function setArialLabelForExpandCollapseBtn() {
161115
const expandCollapseBtns = document.getElementsByClassName("css-rl1ij0");
162116
if (expandCollapseBtns) {
@@ -180,7 +134,6 @@
180134
}
181135

182136
setEventOnMenuClick();
183-
setListItemsAc11y();
184137
}
185138

186139
function createSvg(svgPath) {
@@ -426,4 +379,15 @@
426379
.css-8ktt77 {
427380
display: none;
428381
}
429-
</style>
382+
383+
.css-14o7vtb {
384+
border: 2px solid transparent;
385+
}
386+
387+
.css-14o7vtb:focus-visible {
388+
outline: auto;
389+
}
390+
.search-field {
391+
display: none !important;
392+
}
393+
</style>

.storybook/preview-body.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@
8484
color: #e50000 !important;
8585
}
8686

87+
.css-3ltsna:focus-visible {
88+
outline: auto;
89+
}
90+
8791
@media (max-width: 768px) {
8892
.story-mgt-root {
8993
flex-direction: column;

0 commit comments

Comments
 (0)