Tags: blade-ui-kit/blade-icons
Tags
Remove labelled-by attribute from SVG when title attribute is passed (#… …249) * Add title tag to SVG's if title attribute is set * Update src/Svg.php * Pass tile directly to the method as param * Better variable name for title element * Update regular expression, consider <svg> may be passed with not attributes. * Svg class tests to ensure aria attribute and title element are added correctly. * Add role as img: WCAG best practice * Update tests to check for role attribute * Update README.md - Add Accessibility section * Update README.md * Include usage example * Remove aria-labelledby attribute * Update tests: Remove checks for id and aria-labelledby * Update docs: Examples without aria-labelledby --------- Co-authored-by: Dries Vints <dries@vints.be> Co-authored-by: Nicky <36059299+jdmghost@users.noreply.github.com>
Accessible SVG icons: Add title tag inside SVG if the title attribute… … is set (#245) * Add title tag to SVG's if title attribute is set * Update src/Svg.php * Pass tile directly to the method as param * Better variable name for title element * Update regular expression, consider <svg> may be passed with not attributes. * Svg class tests to ensure aria attribute and title element are added correctly. * Add role as img: WCAG best practice * Update tests to check for role attribute * Update README.md - Add Accessibility section * Update README.md * Include usage example --------- Co-authored-by: Dries Vints <dries@vints.be> Co-authored-by: Nicky <36059299+jdmghost@users.noreply.github.com>
Windows build (#213) * Windows build * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * Fix code styling * wip * wip * wip * Fix code styling * wip * Fix code styling * wip * wip * Fix code styling * wip --------- Co-authored-by: driesvints <driesvints@users.noreply.github.com>
Apply SVG file filter for Generator by Default (#209) * Add ability for Generator to filter files This allows icon package devs to define a filter closure applied to the list of discovered files. If the upstream icon package starts to included non-SVG files in Icon set folders this can filter those out. * Fix code styling * Just filter SVG files by default instead of new option * Add tests to cover IconGenerator and config options * Fix code styling * Update IconGeneratorTest.php --------- Co-authored-by: mallardduck <mallardduck@users.noreply.github.com> Co-authored-by: Dries Vints <dries@vints.io>
PreviousNext