Skip to content

Commit

Permalink
fix(): replace hub-radio input with tile-select to resolve a11y bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinPerry committed Sep 25, 2024
1 parent d555c17 commit c26c4b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const buildUiSchema = async (
scope: "/properties/_discussions",
type: "Control",
options: {
control: "hub-field-input-radio",
control: "hub-field-input-tile-select",
labels: [
`{{${i18nScope}.fields.discussable.enabled.label:translate}}`,
`{{${i18nScope}.fields.discussable.disabled.label:translate}}`,
Expand All @@ -35,6 +35,7 @@ export const buildUiSchema = async (
`{{${i18nScope}.fields.discussable.disabled.description:translate}}`,
],
icons: ["speech-bubbles", "circle-disallowed"],
type: "radio",
},
},
],
Expand Down
3 changes: 2 additions & 1 deletion packages/common/src/sites/_internal/SiteUiSchemaFollowers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const buildUiSchema = async (
scope: "/properties/_followers/properties/isDiscussable",
type: "Control",
options: {
control: "hub-field-input-radio",
control: "hub-field-input-tile-select",
labels: [
`{{${i18nScope}.fields.followers.discussable.enabled.label:translate}}`,
`{{${i18nScope}.fields.followers.discussable.disabled.label:translate}}`,
Expand All @@ -71,6 +71,7 @@ export const buildUiSchema = async (
`{{${i18nScope}.fields.followers.discussable.disabled.description:translate}}`,
],
icons: ["speech-bubbles", "circle-disallowed"],
type: "radio",
},
},
],
Expand Down

0 comments on commit c26c4b6

Please sign in to comment.