Skip to content

Commit 531c085

Browse files
jgw96beth-panxkhmyznikovJaylyn-Barbeenmetulev
authored
Staging (#4785)
fixes - #4763 - #4748 - #4783 - #4747 <!-- Link to relevant issue (for ex: "fixes #1234") which will automatically close the issue once the PR is merged --> ## PR Type <!-- Please uncomment one ore more that apply to this PR --> <!-- - Bugfix --> <!-- - Feature --> <!-- - Code style update (formatting) --> <!-- - Refactoring (no functional changes, no api changes) --> <!-- - Build or CI related changes --> <!-- - Documentation content changes --> <!-- - Sample app changes --> <!-- - Other... Please describe: --> ## Describe the current behavior? <!-- Please describe the current behavior that is being modified or link to a relevant issue. --> ## Describe the new behavior? ## PR Checklist - [ ] Test: run `npm run test` and ensure that all tests pass - [ ] Target main branch (or an appropriate release branch if appropriate for a bug fix) - [ ] Ensure that your contribution follows [standard accessibility guidelines](https://docs.microsoft.com/en-us/microsoft-edge/accessibility/design). Use tools like https://webhint.io/ to validate your changes. ## Additional Information --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Beth Pan <[email protected]> Co-authored-by: Gleb Khmyznikov <[email protected]> Co-authored-by: Jaylyn Barbee <[email protected]> Co-authored-by: Jaylyn Barbee <[email protected]> Co-authored-by: Nikola Metulev <[email protected]> Co-authored-by: Mara'ah Lee <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Adolf Daniel <[email protected]> Co-authored-by: Justin Willis (HE / HIM) <[email protected]> Co-authored-by: Zach Teutsch <[email protected]> Co-authored-by: vipul-bhojwani <[email protected]> Co-authored-by: Amrutha Srinivasan <[email protected]> Co-authored-by: Federico Navarrete <[email protected]> Co-authored-by: Toby Liu <[email protected]> Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com> Co-authored-by: Amrutha Srinivasan <[email protected]> Co-authored-by: Jonas Thelemann <[email protected]> Co-authored-by: Siraj Chokshi <[email protected]> Co-authored-by: Thomas Peißl <[email protected]> Co-authored-by: Migush <[email protected]> Co-authored-by: Abdullhakim Sami Alshanqity <[email protected]> Co-authored-by: mecmep <[email protected]> Co-authored-by: Joel Limberg <[email protected]> Co-authored-by: Pratik-k <[email protected]> Co-authored-by: Maicon Carraro <[email protected]>
1 parent 7565c9c commit 531c085

File tree

7 files changed

+44
-57
lines changed

7 files changed

+44
-57
lines changed

apps/pwabuilder/src/script/components/discord-box.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export class DiscordBox extends LitElement {
8080
<div id="discord-box">
8181
<img id="logo" src="/assets/images/discord_logo.svg" alt="discord logo"/>
8282
<p>Want to chat? Join us on <a @click=${() => recordPWABuilderProcessStep("discord_box_link_clicked", AnalyticsBehavior.ProcessCheckpoint)} href="https://aka.ms/pwabuilderdiscord" target="_blank" rel="noopener" aria-label="Click to join us on Discord">Discord</a></p>
83-
<button id="close-wrapper" @click=${() => this.close()} aria-label="discord modal close" type="button"><img id="close" src="/assets/images/Close_desk.png" role="presentation"/></button>
83+
<button id="close-wrapper" @click=${() => this.close()} aria-label="discord modal close" type="button"><sl-icon id="close" name="x-lg"></sl-icon></button>
8484
</div>`
8585
: null}
8686
`;

apps/pwabuilder/src/script/components/share-card.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class ShareCard extends LitElement {
5454
top: 5px;
5555
right: 5px;
5656
z-index: 1000;
57-
color: #C2C9D1;
57+
color: #000000;
5858
}
5959
.dialog_header {
6060
height: 12px !important;

apps/pwabuilder/src/script/pages/app-report.ts

Lines changed: 37 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -916,26 +916,28 @@ export class AppReport extends LitElement {
916916
width: 100%;
917917
box-shadow: 0px 4px 30px 0px #00000014;
918918
border-radius: var(--card-border-radius);
919+
padding: 20px;
920+
background-color: #ffffff;
921+
display: flex;
922+
flex-direction: column;
923+
width: 100%;
919924
}
920925
921-
#todo-detail::part(base) {
926+
#todo-detail {
922927
border-radius: var(--card-border-radius);
923928
border: none;
929+
display: flex;
930+
flex-direction: column;
931+
width: 100%;
924932
}
925933
926-
#todo-detail::part(header) {
934+
.details-summary {
927935
height: 60px;
928-
}
929-
930-
#todo-detail::part(summary) {
931936
color: var(--primary-color);
932937
font-size: 20px;
933938
font-weight: bold;
934-
}
935-
936-
#todo-detail::part(content){
937-
padding-top: 0;
938-
padding-bottom: 1em;
939+
margin-bottom: 20px;
940+
height: fit-content;
939941
}
940942
941943
#todo-summary-left {
@@ -946,6 +948,7 @@ export class AppReport extends LitElement {
946948
947949
#todo-summary-left > h2 {
948950
font-size: var(--subheader-font-size);
951+
margin: 0;
949952
}
950953
951954
#pagination-actions {
@@ -1901,7 +1904,6 @@ export class AppReport extends LitElement {
19011904

19021905
// Expands the Action items details on load
19031906
firstUpdated() {
1904-
this.rotateNinety("todo", undefined, true);
19051907

19061908
}
19071909

@@ -2439,11 +2441,7 @@ export class AppReport extends LitElement {
24392441
this.showConfirmationModal = false;
24402442

24412443
details.forEach((detail: any) => {
2442-
if(detail.id != "todo-detail"){
2443-
detail.hide();
2444-
} else {
2445-
detail.show()
2446-
}
2444+
detail.hide();
24472445
});
24482446

24492447
// reset retest data
@@ -2800,26 +2798,29 @@ export class AppReport extends LitElement {
28002798
})
28012799

28022800
if(yellow + purple + red != 0){
2801+
2802+
let redSelected = this.filterList.includes("required");
2803+
let yellowSelected = this.filterList.includes("recommended");
2804+
let purpleSelected = this.filterList.includes("enhancement");
2805+
2806+
let redClassMap = classMap({'indicator' : true, 'selected': redSelected});
2807+
let yellowClassMap = classMap({'indicator' : true, 'selected': yellowSelected});
2808+
let purpleClassMap = classMap({'indicator' : true, 'selected': purpleSelected});
2809+
28032810
return html`
28042811
<div id="indicators-holder">
28052812
${red != 0 ?
2806-
this.filterList.includes("required") ?
2807-
html`<button type="button" class="indicator selected" tabindex="0" @click=${(e: Event) => this.filterTodoItems("required", e)}><img src=${stop_white_src} alt="invalid result icon"/><p>${red}</p></button>` :
2808-
html`<button type="button" class="indicator" tabindex="0" @click=${(e: Event) => this.filterTodoItems("required", e)}><img src=${stop_src} alt="invalid result icon"/><p>${red}</p></button>`
2813+
html`<button type="button" class=${redClassMap} data-indicator="required" aria-pressed="${redSelected}" tabindex="0" @click=${(e: Event) => this.filterTodoItems("required", e)}><img src=${redSelected ? stop_white_src : stop_src} alt="invalid result icon"/><p>${red}</p></button>`
28092814
: null
28102815
}
28112816
${yellow != 0 ?
2812-
this.filterList.includes("recommended") || this.filterList.includes("optional") ?
2813-
html`<button type="button" class="indicator selected" tabindex="0" @click=${(e: Event) => this.filterTodoItems("yellow", e)}><img src=${yield_white_src} alt="yield result icon"/><p>${yellow}</p></button>` :
2814-
html`<button type="button" class="indicator" tabindex="0" @click=${(e: Event) => this.filterTodoItems("yellow", e)}><img src=${yield_src} alt="yield result icon"/><p>${yellow}</p></button>`
2817+
html`<button type="button" class=${yellowClassMap} data-indicator="yellow" aria-pressed="${yellowSelected}" tabindex="0" @click=${(e: Event) => this.filterTodoItems("yellow", e)}><img src=${yellowSelected ? yield_white_src : yield_src} alt="yield result icon"/><p>${yellow}</p></button>`
28152818
: null
28162819
}
28172820
${purple != 0 ?
2818-
this.filterList.includes("enhancement") ?
2819-
html`<button type="button" class="indicator selected" tabindex="0" @click=${(e: Event) => this.filterTodoItems("enhancement", e)}><img src=${enhancement_white_src} alt="enhancement result icon"/><p>${purple}</p></button>` :
2820-
html`<button type="button" class="indicator" tabindex="0" @click=${(e: Event) => this.filterTodoItems("enhancement", e)}><img src=${enhancement_src} alt="enhancement result icon"/><p>${purple}</p></button>`
2821-
: null
2822-
}
2821+
html`<button type="button" class=${purpleClassMap} data-indicator="enhancement" aria-pressed="${purpleSelected}" tabindex="0" @click=${(e: Event) => this.filterTodoItems("enhancement", e)}><img src=${purpleSelected ? enhancement_white_src : enhancement_src} alt="enhancement result icon"/><p>${purple}</p></button>`
2822+
: null
2823+
}
28232824
</div>`
28242825
}
28252826
return null;
@@ -2830,11 +2831,13 @@ export class AppReport extends LitElement {
28302831
filterTodoItems(filter: string, e: Event){
28312832
e.stopPropagation();
28322833

2834+
/* let button = this.shadowRoot!.querySelector('[data-indicator="' + filter + '"]');
2835+
let isPressed = button!.getAttribute("aria-pressed") === "true";
2836+
button!.setAttribute("aria-pressed", isPressed ? "false" : "true"); */
2837+
28332838
recordPWABuilderProcessStep(`${filter}_indicator_clicked`, AnalyticsBehavior.ProcessCheckpoint);
28342839

28352840
this.pageNumber = 1;
2836-
/* let todoDetail: SlDetails = (this.shadowRoot!.getElementById('todo-detail')! as unknown as SlDetails);
2837-
todoDetail.show(); */
28382841

28392842
this.stopShowingNotificationTooltip = true;
28402843
// if its in the list, remove it, else add it
@@ -2913,7 +2916,7 @@ export class AppReport extends LitElement {
29132916
dialogContent = html`
29142917
<p>Retesting your site now!</p>
29152918
`;
2916-
}
2919+
}
29172920
else if (this.readdDenied) {
29182921
dialogContent = html`
29192922
<p>Add your new ${this.thingToAdd}, and then we can retest your site. </p>
@@ -3044,8 +3047,8 @@ export class AppReport extends LitElement {
30443047
src=${`/assets/windows_icon${this.darkMode ? "_light" : ""}.svg`}
30453048
alt="Windows"
30463049
/>
3047-
<img
3048-
title="iOS"
3050+
<img
3051+
title="iOS"
30493052
src=${`/assets/apple_icon${this.darkMode ? "_light" : ""}.svg`}
30503053
alt="iOS" />
30513054
<img
@@ -3095,11 +3098,8 @@ export class AppReport extends LitElement {
30953098
}
30963099
30973100
<div id="todo">
3098-
<sl-details
3101+
<div
30993102
id="todo-detail"
3100-
@sl-show=${(e: Event) => this.rotateNinety("todo", e)}
3101-
@sl-hide=${(e: Event) => this.rotateZero("todo", e)}
3102-
open
31033103
>
31043104
<div class="details-summary" slot="summary">
31053105
<div id="todo-summary-left">
@@ -3123,8 +3123,6 @@ export class AppReport extends LitElement {
31233123
:
31243124
null}
31253125
</div>
3126-
<img class="dropdown_icon" data-card="todo" src="/assets/new/dropdownIcon.svg" alt="dropdown toggler"/>
3127-
31283126
</div>
31293127
<div class="todo-items-holder">
31303128
${this.filteredTodoItems.length > 0 ? this.paginate().map((todo: any) =>
@@ -3174,7 +3172,7 @@ export class AppReport extends LitElement {
31743172
</button>
31753173
</div>` : null}
31763174
<div id="pageStatus" aria-live="polite" aria-atomic="true"></div>
3177-
</sl-details>
3175+
</div>
31783176
</div>
31793177
31803178
<div id="manifest" class="flex-col">

docs/builder/android.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ The first step is to generate your Android package with PWABuilder:
2929
4. Click on `Generate Package` in the Android section.
3030

3131
<div class="docs-image">
32-
<img src="/assets/builder/android/store_package.jpg" width=550>
32+
<img src="/assets/builder/android/store_package.jpg" alt="PWABuilder store package selection page showing options to generate packages for both Windows and Android" width=550>
3333
</div>
3434

3535
5. Make sure you are on the `Google Play` tab and fill out the required options for your package.
3636

3737
6. Click `Download Package`.
3838

3939
<div class="docs-image">
40-
<img src="/assets/builder/android/android-options.png" width=550>
40+
<img src="/assets/builder/android/android-options.png" alt="Android packaging options page on PWABuilder.com" width=550>
4141
</div>
4242

4343
## Configuration Options

docs/starter/cli-usage.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,3 @@ pwa build
8181
```
8282

8383
The build command outputs a transpiled and server-ready version of your application to the `dist` directory. You can use this command once you are ready to deploy your PWA to a production server.
84-
85-
### Passing custom arguments to Vite
86-
87-
Just like with the start command, you can pass arguments through the CLI to the Vite build process.
88-
89-
Using the `--viteArgs` flag:
90-
91-
```
92-
pwa start --viteArgs="Custom Args String"
93-
```
94-
95-
To learn more about what you can do with Vite, check out [their documentation](https://vitejs.dev/config/)

docs/styles/global.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ sl-menu-item::part(base) {
110110
margin-right: 2px;
111111
border-radius: 20px;
112112
font-weight: 500;
113+
border: 1px solid transparent;
113114
}
114115

115116
sl-menu-item[checked]::part(base) {

docs/styles/vs-prism.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127

128128
.token.class-name,
129129
.language-json .token.property {
130-
color: #2B91AF;
130+
color: #247b95;
131131
}
132132

133133
.token.tag,
@@ -155,7 +155,7 @@
155155
}
156156

157157
.line-numbers .line-numbers-rows > span:before {
158-
color: #2B91AF;
158+
color: #247b95;
159159
}
160160

161161
/* overrides color-values for the Line Highlight plugin

0 commit comments

Comments
 (0)