Skip to content

Commit

Permalink
fix(core): remove role="dialog" from dialog body in docs (#12550)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikerodonnell89 authored Oct 18, 2024
1 parent 9a2dc67 commit 42a2589
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion libs/docs/core/dialog/dialog-docs.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ <h1 fd-title id="fd-dialog-header-11">Playground Dialog</h1>
<button fd-dialog-close-button (click)="dialog.dismiss()" title="close"></button>
</fd-dialog-header>
<fd-dialog-body>
<p id="fd-dialog-body-11" role="dialog">This is the dialog playground body text!</p>
<p id="fd-dialog-body-11">This is the dialog playground body text!</p>
</fd-dialog-body>
<fd-dialog-footer>
<fd-button-bar fdType="emphasized" label="Close" (click)="dialog.close()" ariaLabel="Close Emphasized">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h1 id="fd-dialog-header-10" fd-title fd-dialog-title>The History of Pineapple</
</fd-dialog-header>

<fd-dialog-body>
<div id="fd-dialog-body-10" role="dialog">Are you interested in The Great History of Pineapple?</div>
<div id="fd-dialog-body-10">Are you interested in The Great History of Pineapple?</div>
</fd-dialog-body>

<fd-dialog-footer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { TitleComponent } from '@fundamental-ngx/core/title';
<h1 id="fd-dialog-header-1" fd-title>{{ dialogRef.data.title }}</h1>
</fd-dialog-header>
<fd-dialog-body>
<p id="fd-dialog-body-1" role="dialog" [ngStyle]="{ 'text-align': 'justify', margin: 0 }">
<p id="fd-dialog-body-1" [ngStyle]="{ 'text-align': 'justify', margin: 0 }">
{{ dialogRef.data.pinnapleDescription }}
</p>
<ul [style.margin-bottom]="0">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h1 id="fd-dialog-header-2" fd-title>Backdrop Configuration</h1>
</fd-dialog-header>

<fd-dialog-body>
<div id="fd-dialog-body-2" role="dialog">{{ dialog.data }}</div>
<div id="fd-dialog-body-2">{{ dialog.data }}</div>
</fd-dialog-body>

<fd-dialog-footer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h1 id="fd-dialog-header-4" fd-title>Origin of the Pineapple Word</h1>
</fd-dialog-header>

<fd-dialog-body>
<div id="fd-dialog-body-4" role="dialog">
<div id="fd-dialog-body-4">
The word pineapple in English was first recorded in 1398, when it was originally used to describe the
reproductive organs of conifer trees (now termed pine cones). When European explorers discovered this
tropical fruit they called them pineapples (term first recorded in that sense in 1664) because of their
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<button fd-button label="Open Dialog From Object" (click)="openDialog()"></button>

<ng-template #dialogContent>
<div [style.padding]="'0 1rem'" role="dialog">You can also create dialog without building whole template.</div>
<div [style.padding]="'0 1rem'">You can also create dialog without building whole template.</div>
</ng-template>

<ng-template #dialogSubHeader>
Expand Down Expand Up @@ -30,7 +30,7 @@ <h1 id="fd-dialog-header-10" fd-title>The History of Pineapple</h1>
</fd-dialog-header>

<fd-dialog-body>
<p id="fd-dialog-body-10" role="dialog">Are you interested in The Great History of Pineapple?</p>
<p id="fd-dialog-body-10">Are you interested in The Great History of Pineapple?</p>
</fd-dialog-body>

<fd-dialog-footer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ import { TitleComponent } from '@fundamental-ngx/core/title';
<fd-dialog-body>
<p
id="fd-dialog-body-1"
role="dialog"
[ngStyle]="{
'text-align': 'justify',
margin: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h1 id="fd-dialog-header-5" fd-title>Wild pineapples</h1>
</fd-dialog-header>

<fd-dialog-body>
<div id="fd-dialog-body-5" role="dialog">
<div id="fd-dialog-body-5">
Certain bat-pollinated wild pineapples, members of the Bromeliad family, do the exact opposite of most
flowers by opening their flowers at night and closing them during the day.
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<button fd-button label="Open Dialog From Object" (click)="openDialog()"></button>

<ng-template #dialogContent>
<div [style.padding]="'0 1rem'" role="dialog">You can also create dialog without building whole template.</div>
<div [style.padding]="'0 1rem'">You can also create dialog without building whole template.</div>
</ng-template>

<ng-template #dialogSubHeader>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h1 id="fd-dialog-header-6" fd-title>More Facts about the Pineapple</h1>
</fd-dialog-header>

<fd-dialog-body>
<div id="fd-dialog-body-6" role="dialog">
<div id="fd-dialog-body-6">
The natural (or most common) pollinator of the pineapple is the hummingbird. Pollination is required for
seed formation; the presence of seeds negatively affects the quality of the fruit. In Hawaii, where
pineapple is cultivated on an agricultural scale, importation of hummingbirds is prohibited for this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h1 id="fd-dialog-header-7" fd-title>Dialog states</h1>
</fd-dialog-header>

<fd-dialog-body>
<div id="fd-dialog-body-7" role="dialog">{{ dialog.data }}</div>
<div id="fd-dialog-body-7">{{ dialog.data }}</div>
</fd-dialog-body>

<fd-dialog-footer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { SecondDialogExampleComponent } from './second-dialog-example.component'
</fd-dialog-header>
<fd-dialog-body>
<div id="fd-dialog-body-8" role="dialog">
<div id="fd-dialog-body-8">
This is the first dialog!<br />
Click the button below to open the second dialog.
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { TitleComponent } from '@fundamental-ngx/core/title';
</fd-dialog-header>
<fd-dialog-body>
<div id="fd-dialog-body-9" role="dialog">
<div id="fd-dialog-body-9">
This is the second dialog!<br />
It is completely independent from the first dialog and can be controlled separately!
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h1 id="fd-dialog-header-10" fd-title>The History of Pineapple</h1>
</fd-dialog-header>

<fd-dialog-body>
<p id="fd-dialog-body-10" role="dialog">Are you interested in The Great History of Pineapple?</p>
<p id="fd-dialog-body-10">Are you interested in The Great History of Pineapple?</p>
</fd-dialog-body>

<fd-dialog-footer>
Expand Down

0 comments on commit 42a2589

Please sign in to comment.