issues
search
feedzai
/
AutoVizuA11y
React library that automates the process of creating accessible data visualizations for screen reader users
https://feedzai.github.io/AutoVizuA11y/
GNU Affero General Public License v3.0
27
stars
0
forks
source link
Feat: Isolate Shortcut Guide
#28
Closed
DiogoRDuarte
closed
2 months ago
DiogoRDuarte
commented
3 months ago
Because
The default ShortcutGuide was not customizable by the developer in terms of CSS.
Developers could not use their own Custom ShortcutGuide components.
AutoVizuA11y , while directly manipulating the DOM, was expecting the ShortcutGuide to have specific classNames.
Refactor
Added a prop to AutoVizuA11y that enables the ShortcutGuide to be overwritten (if this prop is no filled, a default one is used instead);
Made the styles of the default ShortcutGuide customizable by following the BEM patterns;
Made the creation of the ShortcutGuide more dynamic, using a data object as input and making it so the creation of multiple columns is dynamic;
Verifications of the active element no longer use specific classNames;
Converted the ShortcutGuide from a table to divs given the lack of benefits from the first approach;
Changed the README accordingly.
Because
Refactor