Skip to content

Commit 36357af

Browse files
committed
readonly => read only
1 parent f039904 commit 36357af

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

site/src/content/docs/forms/checkbox.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,9 +402,9 @@ Add the `disabled` attribute to the input, then the checkbox and the associated
402402
</div>`} />
403403
</BootstrapCompatibility>
404404

405-
### Readonly
405+
### Read only
406406

407-
To create a readonly checkbox, the input should be replaced by a `span` element with `role="checkbox"`, `aria-readonly="true"` and `aria-disabled="true"` attributes. The checkbox will be accessible to keyboard navigation and assistive technologies, thanks to `aria-labelledby` and `tabindex`, but other interactions will be prevented.
407+
To create a read only checkbox, the input should be replaced by a `span` element with `role="checkbox"`, `aria-readonly="true"` and `aria-disabled="true"` attributes. The checkbox will be accessible to keyboard navigation and assistive technologies, thanks to `aria-labelledby` and `tabindex`, but other interactions will be prevented.
408408

409409
<Example buttonLabel="readonly checkboxes" class="bd-example-indeterminate" addStackblitzJs code={`<fieldset class="control-items-list">
410410
<div class="checkbox-item">

site/src/content/docs/forms/radio-button.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,9 +391,9 @@ Add the `disabled` attribute to the input, then the radio button and the associa
391391
</div>`} />
392392
</BootstrapCompatibility>
393393

394-
### Readonly
394+
### Read only
395395

396-
To create a readonly radio button, the input should be replaced by a `span` element with `role="radio"` and `aria-disabled="true"` attributes. All the radio buttons in the group must be surrounded by a container with `role="radiogroup"` and `aria-readonly="true"` attributes. This is the only way to be compliant with ARIA specifications. The radio button will be accessible to keyboard navigation and assistive technologies, thanks to `aria-labelledby` and `tabindex`, but other interactions will be prevented.
396+
To create a read only radio button, the input should be replaced by a `span` element with `role="radio"` and `aria-disabled="true"` attributes. All the radio buttons in the group must be surrounded by a container with `role="radiogroup"` and `aria-readonly="true"` attributes. This is the only way to be compliant with ARIA specifications. The radio button will be accessible to keyboard navigation and assistive technologies, thanks to `aria-labelledby` and `tabindex`, but other interactions will be prevented.
397397

398398
<Example buttonLabel="readonly radio buttons" code={`<fieldset class="control-items-list">
399399
<div role="radiogroup" aria-readonly="true">

site/src/content/docs/forms/switch.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,9 @@ Add the `disabled` attribute to the input, then the switch and the associated `<
288288
</div>`} />
289289
</BootstrapCompatibility>
290290

291-
### Readonly
291+
### Read only
292292

293-
To create a readonly switch, the input should be replaced by a `span` element with `role="switch"`, `aria-readonly="true"` and `aria-disabled="true"` attributes. The switch will be accessible to keyboard navigation and assistive technologies thanks to `aria-labelledby` and `tabindex`, but other interactions will be prevented.
293+
To create a read only switch, the input should be replaced by a `span` element with `role="switch"`, `aria-readonly="true"` and `aria-disabled="true"` attributes. The switch will be accessible to keyboard navigation and assistive technologies thanks to `aria-labelledby` and `tabindex`, but other interactions will be prevented.
294294

295295
<Example buttonLabel="readonly switches" code={`<ul class="control-items-list">
296296
<li class="switch-item">

site/src/content/docs/forms/text-input.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ Add the `disabled` boolean attribute on an input to give it a grayed out appeara
330330
</div>
331331
</div>`} />
332332

333-
### Readonly
333+
### Read only
334334

335335
Add the `readonly` boolean attribute on an input to prevent modification of the input’s value. `readonly` inputs can still be focused and selected, while `disabled` inputs cannot.
336336

0 commit comments

Comments
 (0)