-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a standard "help" element #2546
Comments
The PR at backdrop/backdrop#1794 adds the following:
|
Seems a simple change to me and it is backwards compatible as in if someone still uses the "old", |
Great thanks for the review @klonos! Merged backdrop/backdrop#1794 into 1.x for 1.7.0. |
Shouldn't https://api.backdropcms.org/form_api be updated to include this? |
I've updated the Form API docs at https://api.backdropcms.org/form_api#help. Can someone confirm that #attriubutes will work? I think I got everything else. edit: I checked the PR and it looks like #attributes will not work, so I've removed that X from the grid. Closing this issue :) |
In dozens of places throughout core we have a pattern of creating a "help" element with the following code:
We should create a standard element so that help text is displayed consistently. e.g.
This would allow themers to override
theme_help()
if needed, and we could standardize whether a<p>
tag is added or not.PR backdrop/backdrop#1794
The text was updated successfully, but these errors were encountered: