Comments (2)
Another use would be adding additional class names to an object. Might help MathQuill bypass a specific input element. See: openwebwork/webwork2#1071 (comment)
from pg.
This idea remains of interest, and it seem that there is some infrastructure in place which could be extended to implement the feature. Unfortunately, I have not had time to work on implementing anything yet.
I discovered (thanks to a forum post by Ping-Shun Chan at https://webwork.maa.org/moodle/mod/forum/discuss.php?d=4877#p14660) that NAMED_ANS_RULE
(in macros/PGbasicmacros.pl
) has existing support for a hash of options, and can handle an option called aria_label
to provide a better aria label. It seems that getting all the standard methods to receive and pass on such an options hash would facilitate proving the sort of features envisioned.
The discussion at https://webwork.maa.org/moodle/mod/forum/discuss.php?d=4694 seems to also raise the idea of adding "hidden labels" in addition to the aria-labels based on information provided in the options.
Support for the options hash and for a provided value of an aria_label
option seems somewhat incomplete:
NAMED_ANS_RULE
supports it.- So do
NAMED_ANS_RULE_EXTENSION
,NAMED_ANS_BOX
,NAMED_ANS_ARRAY_EXTENSION
- So does
ans_matrix
inlib/Value/AnswerChecker.pm
which is the underlying function forans_array
andnamed_ans_array
.) - For some reason
NAMED_ANS_RADIO_EXTENSION
seems to handle that option and only uses a default when it is not set, butNAMED_ANS_RADIO
andNAMED_ANS_RADIO_BUTTONS
do not seem to handle such an option. NAMED_ANS_CHECKBOX
,NAMED_ANS_CHECKBOX_OPTION
However, neitherlabeled_ans_rule
norans_rule
seems to be able to pass on such options.
Regarding the idea to use this feature specifically to add CSS styling code - an alternate approach was found using DIV/SPAN elements and CSS selectors and which seems to do pretty well. See: https://webwork.maa.org/moodle/mod/forum/discuss.php?d=4767 but ignore the first sample file with an older version of the code in the later posts.
from pg.
Related Issues (20)
- Bug when a matrix Math Object is reused as an answer HOT 10
- PGML.pl has lines that should have been removed. HOT 1
- checkboxlist within a RadioMultiAnswer HOT 4
- Using upToConstant with complex numbers HOT 4
- keyboard issue with GraphTool HOT 8
- inconsistency in multiple choice macros HOT 4
- run-perltidy deletes .bak files
- Error answers now are escaped when they shouldn't be. HOT 1
- Cropping from pgfplots is not always working for final SVG output HOT 13
- variables declared with `my` lead to errors HOT 1
- student answers get spaces normalized
- iframeResizer, feedback popover, and mqeditor HOT 16
- Updating AnswerFormatHelp.pl HOT 5
- Viewing all correct answers at the same time HOT 4
- PTX "image" tag getting changed to "img" HOT 5
- error with brace and x HOT 9
- PG editor not decoding as expecting HOT 1
- macros/graph/PGnauGraphics.pl doesn't use unique name, which can break tests. HOT 1
- CheckboxList reveals the correct answers HOT 3
- MathQuill toolbar placement in a relatively positioned parent - bug when in an RTL course. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pg.