@codecademy/gamut

72.2.272.2.3-alpha.f0a032.0
dist/Form/SelectDropdown/core/accessibility.js
+dist/Form/SelectDropdown/core/accessibility.jsNew file
+12
Index: package/dist/Form/SelectDropdown/core/accessibility.js
===================================================================
--- package/dist/Form/SelectDropdown/core/accessibility.js
+++ package/dist/Form/SelectDropdown/core/accessibility.js
@@ -0,0 +1,12 @@
+export const onFocus = ({
+  focused: {
+    label,
+    subtitle,
+    rightLabel,
+    disabled
+  }
+}) => {
+  const formattedSubtitle = `, ${subtitle}`;
+  const formattedRightLabel = `, ${rightLabel}`;
+  return `You are currently focused on option ${label}${subtitle ? formattedSubtitle : ''} ${rightLabel ? formattedRightLabel : ''}${disabled ? ', disabled' : ''}`;
+};
\ No newline at end of file