Skip to content

Commit

Permalink
Add ability to have aria-label on el-select (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
fishercognitoforms authored Jun 25, 2024
1 parent 4293e2d commit cf21e69
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/select/src/select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
role="combobox"
aria-haspopup="listbox"
:aria-owns="id ? `${id}-listbox` : null"
:aria-expanded="visible ? 'true' : 'false'"
:aria-expanded="visible ? 'true' : 'false'"
:aria-label="label"
@focus="handleFocus"
@blur="softFocus = false"
@keyup="managePlaceholder"
Expand Down Expand Up @@ -85,6 +86,7 @@
aria-haspopup="listbox"
:aria-owns="id ? `${id}-listbox` : null"
:aria-expanded="visible ? 'true' : 'false'"
:aria-label="label"
@focus="handleFocus"
@blur="softFocus = false"
@keyup="managePlaceholder"
Expand Down Expand Up @@ -117,6 +119,7 @@
aria-haspopup="listbox"
:aria-owns="id ? `${id}-listbox` : null"
:aria-expanded="visible ? 'true' : 'false'"
:label="label"
:aria-activedescendant="id && hoveredOption ? `${id}-option-${hoveredOption.value}` : null"
:size="selectSize"
:disabled="selectDisabled"
Expand Down Expand Up @@ -313,6 +316,7 @@
name: String,
id: String,
title: String,
label: String,
value: {
required: true
},
Expand Down

0 comments on commit cf21e69

Please sign in to comment.