Skip to content

Commit

Permalink
fix: match the id of select with for attr (#280)
Browse files Browse the repository at this point in the history
Co-authored-by: “BogdanDanilescu” <bogdan.danilescu@nearform.com>
  • Loading branch information
BogdanDanilescu and “BogdanDanilescu” authored Oct 10, 2024
1 parent d5554d6 commit 44f5d0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/html/ds/src/select/select.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
}}
{% endif %}
<select
id="{{ ariaLabel }}"
id="{{ props.id }}"
aria-label="{{ ariaLabel }}"
class="focus:gi-outline focus:gi-outline-[3px] focus:gi-outline-yellow-400 focus:gi-outline-offset-0 gi-p-1.5 gi-border-black gi-border-[3px] gi-border-solid gi-min-w-56 gi-font-primary xs:gi-text-sm md:gi-text-md lg:gi-text-lg {{ marginTop }}"
>
Expand Down
2 changes: 1 addition & 1 deletion packages/react/ds/src/select/select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function Select({ id, label, options, hint, error }: SelectProps) {
xs:gi-text-sm
md:gi-text-md
lg:gi-text-lg"
id={ariaLabel}
id={id}
aria-label={ariaLabel}
>
{options.map((option) => {
Expand Down

0 comments on commit 44f5d0d

Please sign in to comment.