Skip to content

Commit c058025

Browse files
committed
A11Y test
1 parent bb3becc commit c058025

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

lib/components/angle_slider.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,8 @@ defmodule Corex.AngleSlider do
368368
<div
369369
phx-mounted={Connect.ignore_thumb(%Thumb{id: @id, dir: @dir, disabled: @disabled, read_only: @read_only, invalid: @invalid, orientation: @orientation})}
370370
{Connect.thumb(%Thumb{id: @id, dir: @dir, disabled: @disabled, read_only: @read_only, invalid: @invalid, orientation: @orientation})}
371-
/>
371+
title="Thumb"
372+
/>
372373
<div
373374
:if={@marker_values != []}
374375
phx-mounted={Connect.ignore_marker_group(%MarkerGroup{id: @id, dir: @dir, orientation: @orientation})}

lib/components/clipboard.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,12 +251,12 @@ defmodule Corex.Clipboard do
251251
class={@input_class}
252252
phx-mounted={Connect.ignore_input(%Input{id: @id, dir: @dir, value: @value, orientation: @orientation})}
253253
{Connect.input(%Input{id: @id, dir: @dir, value: @value, orientation: @orientation})}
254-
aria-label={@input_aria_label}
254+
aria-label="Text to copy"
255255
/>
256256
<button
257257
phx-mounted={Connect.ignore_trigger(%Trigger{id: @id, dir: @dir, orientation: @orientation})}
258258
{Connect.trigger(%Trigger{id: @id, dir: @dir, orientation: @orientation})}
259-
aria-label={@trigger_aria_label}
259+
aria-label="Copy"
260260
class={@trigger_button_class}
261261
>
262262
<span

lib/components/date-picker.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,13 +553,13 @@ defmodule Corex.DatePicker do
553553
})}
554554
>
555555
<div phx-mounted={Connect.ignore_root(%Anatomy.Root{id: @id, dir: @dir})} {Connect.root(%Anatomy.Root{id: @id, dir: @dir})}>
556-
<span
556+
<label
557557
:if={@label != []}
558558
phx-mounted={Connect.ignore_label(%Anatomy.Label{id: @id, dir: @dir})}
559559
{Connect.label(%Anatomy.Label{id: @id, dir: @dir})}
560560
>
561561
{render_slot(@label)}
562-
</span>
562+
</label>
563563
<div phx-mounted={Connect.ignore_control(%Anatomy.Control{id: @id, dir: @dir})} {Connect.control(%Anatomy.Control{id: @id, dir: @dir})}>
564564
<input type="text" hidden id={"#{@id}-value"} name={@name} value={Phoenix.HTML.Form.normalize_value("date", @value)} aria-hidden="true" />
565565
<%= if @selection_mode == "range" do %>

0 commit comments

Comments
 (0)