You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Blade provides a very useful directive @Class to simplify attribute handling for classes.
Adding an @aria directive would improve the readability of the code when a same syntax was available to generate ARIA attributes dynamically.
Changes to support this are rather small;
Arr::toCssClasses must become an alias of Arr::toTagAttributes (backwards compatibility)
ComponentTagCompiler::parseComponentTagClassStatements function needs an argument (class and 'aria')
After these 2 changes it should be use possible to use something like aria(['hidden' => $isVisible, 'label' => 'example])
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Blade provides a very useful directive @Class to simplify attribute handling for classes.
Adding an @aria directive would improve the readability of the code when a same syntax was available to generate ARIA attributes dynamically.
Changes to support this are rather small;
Arr::toCssClasses
must become an alias ofArr::toTagAttributes
(backwards compatibility)ComponentTagCompiler::parseComponentTagClassStatements
function needs an argument (class
and 'aria')After these 2 changes it should be use possible to use something like
aria(['hidden' => $isVisible, 'label' => 'example])
Beta Was this translation helpful? Give feedback.
All reactions