accessibility | add accessibility to your website | HTTP library
kandi X-RAY | accessibility Summary
kandi X-RAY | accessibility Summary
Add accessibility toolbar to your website with one line of code!.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- for testing go
accessibility Key Features
accessibility Examples and Code Snippets
Community Discussions
Trending Discussions on accessibility
QUESTION
There are a number of different ways, that make a type/class usable in a ranged for loop. An overview is for example given on cppreference:
range-expression
is evaluated to determine the sequence or range to iterate. Each element of the sequence, in turn, is dereferenced and is used to initialize the variable with the type and name given in range-declaration.
begin_expr
andend_expr
are defined as follows:
- If
range-expression
is an expression of array type, thenbegin_expr
is__range
andend_expr
is (__range
+__bound
), where__bound
is the number of elements in the array (if the array has unknown size or is of an incomplete type, the program is ill-formed)- If
range-expression
is an expression of a class typeC
that has both a member namedbegin
and a member namedend
(regardless of the type or accessibility of such member), thenbegin_expr
is__range.begin()
andend_expr
is__range.end()
- Otherwise,
begin_expr
isbegin(__range)
andend_expr
isend(__range)
, which are found via argument-dependent lookup (non-ADL lookup is not performed).
If I want to use a ranged for loop say in a function template, I want to constrain the type to be usable in a ranged for loop, to trigger a compiler error with a nice "constraint not satisfied" message. Consider the following example:
...ANSWER
Answered 2022-Apr-14 at 09:51It seems like what you need is std::ranges::range
which requires the expressions ranges::begin(t)
and ranges::end(t)
to be well-formed.
Where ranges::begin
is defined in [range.access.begin]:
The name
ranges::begin
denotes a customization point object. Given a subexpressionE
with typeT
, let t be an lvalue that denotes the reified object forE
. Then:
If
E
is an rvalue andenable_borrowed_range>
isfalse
,ranges::begin(E)
is ill-formed.Otherwise, if
T
is an array type andremove_all_extents_t
is an incomplete type,ranges::begin(E)
is ill-formed with no diagnostic required.Otherwise, if T is an array type,
ranges::begin(E)
is expression-equivalent tot + 0
.Otherwise, if
auto(t.begin())
is a valid expression whose type modelsinput_or_output_iterator
,ranges::begin(E)
is expression-equivalent toauto(t.begin())
.Otherwise, if
T
is a class or enumeration type andauto(begin(t))
is a valid expression whose type modelsinput_or_output_iterator
with overload resolution performed in a context in which unqualified lookup forbegin
finds only the declarations
QUESTION
I launch the Accessibility Inspector from within Xcode but it doesn't let me interact with elements in the simulator.
I relaunched Xcode, the Accessibility Inspector and simulator but it doesn't seem help.
The simulator I'm using is for iPhone 12.
Accessibility Inspector not working on iPhone 12 simulator
Any ideas?
...ANSWER
Answered 2022-Mar-25 at 17:03Apple often seems to inadvertently break testing tools, especially the Test Recorder and Accessibility Inspector. I'd suggest you use an older version of Xcode until you have a strong need to upgrade. These can be downloaded from Apple's More Downloads page.
If you wish to retain 13.3 I'd suggest renaming it to Xcode_13_3.app
prior to installing a prior version, which will install as Xcode.app
.
I also highly advise against using the App Store to keep your Xcode up to date (if that's what you're doing). Instead manually download new versions via the link above and rename old versions (in case you find broken things in the new one) also as described above.
QUESTION
I've written and optimized a Shiny app, and now I'm struggling with the IT section of the organization where I work to have it published on their servers. Currently, they are claiming that the app is not W3C compliant, which is true, according to the W3C validator.
The errors I'm trying to solve, with no success, are:
Bad value “complementary” for attribute “role” on element “form”.The value of the “for” attribute of the “label” element must be the ID of a non-hidden form control.
Such errors can be seen also in very minimal shiny apps, like:
...ANSWER
Answered 2022-Mar-04 at 08:05The following only deals with the first of the errors you mention (as this one is pretty clear thanks to @BenBolkers comment), but hopefully it points you to the right tools to use.
I'd use htmltools::tagQuery to make the needed modifications - please check the following:
QUESTION
I'm trying to determine what structure is best with regard to typical e-commerce product listing pages. I have reviewed WCAG and other sources and have not found a definitive solution as of yet. A typical product listing contains an image and a product name, both linked to the product details page. There are several patterns that come to mind...
Single link with empty alt textMy thought is that it is best to combine both of these into the same tag and then set
alt=""
on the image therefor the product name will describe the entire purpose of the link.
ANSWER
Answered 2022-Feb-25 at 19:14Method 1 out of the options given is best.
Which method(s), if any, would NOT satisfy WCAG Level AA and therefor not comply with laws in the US, EU, etc.None of them would fail WCAG as such.
However as you have pointed out 2 and 3 result in duplication of effort for keyboard users and links to the same location having different names, which is not a fail under any success criterion but is highly recommended.
Would the image in a Product Listing Page be classified as "decorative"?Yes in scenario 1 and 4.
Expansion of the answers givenAll 4 of the examples given would "pass" WCAG. However they offer very different experiences.
So the question is what things are we considering for accessibility?
The first is Keyboard operability. Examples 2 and 3, as you pointed out result in duplication of focus stops for the same item. So we should avoid them.
The second thing is link purpose. Yet again examples 2 and 3 are not great here as we have 2 links to the same place on the same page that have different accessible labels / text that assistive tech will use.
So we can rule out options 2 and 3 for best practices.
So what about options 1 and 4?
Well as the items are located within a hyperlink we want the link text (the accessible name for those links) to be descriptive of the product page we are going to visit.
As such option one would read: "link: Squeaky Fox Dog Toy" and the second link would read "link: (image) Red fox stuffed dog toy with white braided rope arms, Squeaky Fox Dog Toy"
The second option results in duplication of information so is not as desirable as the first option.
So we land on option 1.
The only consideration you now have is whether that link text describes the product sufficiently. Now if you sold multiple dog toys (different product types) then you need text that describes them as such i.e. "plastic dog toys" and "fluffy dog toys".
If you sell different coloured products and they all had their own page (so you don't have a colour picker on the end page, they are listed as separate items) then you would need to describe the colour there too. "Red fluffy dog toy", "blue fluffy dog toy".
Essentially you need to provide enough information that each product link is easily identifiable as to where it leads (the purpose of the link itself).
This is where judgement comes into play, provide enough information to describe the product generally in a unique way on the page, not so much information that browsing that page becomes problematic due to 100 products with 200 word link text.
So in the example given the "balance" would be something like "Red fox stuffed dog toy", and then describe the appearance in far more detail on the product page, wither in the description or in the product image alt attributes.
Option 5 - if you don't have text at all.It is worth noting that the last option for a product page is no text at all. Just an image inside a link. The following is also valid HTML and accessible as the alt text will be used as the link text (not if an image contains any text at all that should all appear in the alt
attribute).
QUESTION
I have a screen in my app which displays a timer. If the user decides to increase the font size in the device settings menu then the text becomes too large for the layout and it begins to wrap. This is not an issue for my other screens that are more text heavy. For this screen - and only this screen - I would prefer to prevent the timer text from increasing in size if accessibility options are used.
The code in question looks like this, if it adds context:
...ANSWER
Answered 2021-Sep-09 at 04:57As @CommonsWare correctly pointed out, you need to reverse scaling.
You can get fontScale
from LocalDensity
:
QUESTION
I've updated my SpriteKit game to iOS 15 and, when testing on an iPhone 13 Pro, I've discovered frame rate has steadily dropped to around 55-56fps on this device:
However, when I set preferredFramesPerSecond
to 120 (and the respective Info.plist key to allow it), everything keeps up at 120fps, no problem:
So, clearly my update logic is executing well within the allotted time to maintain 60fps. Also, there's no issue maintaining 60fps on the simulator or my other test devices (iPhone 12 Pro, iPhone X, 1st gen. iPhone SE).
This one has me scratching my head. Has anyone experienced this?
Thanks!
Edit #1: Interestingly, I can reproduce the same behavior on my build just by limiting the frame rate in iOS’ Accessibility settings:
...ANSWER
Answered 2022-Jan-31 at 13:25This is no longer an issue for me. It looks like one of the Xcode or iOS updates took care of it. Not sure which.
QUESTION
Our application is getting rejected from the play store for policy violation regarding
Prominent disclosure Non compliant design
for policy: Accessibility API
Initially we were using 3rd party library cobrowse, and they were using
android.permission.BIND_ACCESSIBILITY_SERVICE
and our app got rejected, after that, we had removed the library itself and now no accessibility permission is being asked in our manifest, and to comply with prominent disclosure we had taken the following steps:
- Added a Terms and conditions screen for all users.
- Added UI for prominent disclosure when requesting all permissions.
Note: Even tho we are not using the accessibility API, we kept its content as our rejection reason was still accessibility API even after removing service and library.
Target SDK: 31
We tried updating content and adding prominent disclosure UI still, the app is not getting accepted.
It's been 5 weeks and still no update from google over playstore, and they do not reply to emails, chats.
...ANSWER
Answered 2021-Dec-22 at 11:00Okay after having a discussion with 3rd party lib, they updated lib to ask for accessibility permission and we added proper consent and permission disclosure screens in the app, and it worked !!
QUESTION
I read this documentation for a range-based for
loop:
The member interpretation is used if the range type has a member named begin and a member named end. This is done regardless of whether the member is a type, data member, function, or enumerator, and regardless of its accessibility. Thus a class like
class meow { enum { begin = 1, end = 2}; /* rest of class */ };
cannot be used with the range-based for loop even if the namespace-scope begin/end functions are present.
I do not understand this paragraph. What does the member interpretation do so as to forbid the example class being used with the range-based for loop?
...ANSWER
Answered 2022-Jan-26 at 16:42The "member interpretation" refers to begin_expr
and end_expr
using members of the iterated type in contrast to using plain offsets for arrays or begin
and end
free functions.
The array interpretation is off the table, because it is only used for arrays. Next consider that there is std::begin
and std::end
:
Custom overloads of begin may be provided for classes and enumerations that do not expose a suitable begin() member function, yet can be iterated.
Now consider this example:
QUESTION
I am using swig 4.0.x to wrap a c++ file.
Everything is working fine except I want to change the accessibility of the generated C# classes from public class
to internal class
.
So far what I have tried is this: In swig interface file
...ANSWER
Answered 2022-Jan-03 at 13:41Okay, so I have figured it out after asking this question on swig github repository. Following answer courtesy to William Fulton:
SWIGTYPE_xxx
classes are called Type Wrapper Classes.
You need to use the C type for the typemap that causes the type wrapper class to be generated. For example SWIGTYPE_p_int
is wrapping an int *
. Hence you'd use:
%typemap(csclassmodifiers) int * "internal class"
The defaults for all generated proxy and type wrapper classes comes from csharp.swg:
%typemap(csclassmodifiers) SWIGTYPE, SWIGTYPE *, SWIGTYPE &, SWIGTYPE &&, SWIGTYPE [], SWIGTYPE (CLASS::*) "public class"
So just override these typemaps to provide your customised code and read the chapter on Typemaps in the documentation.
QUESTION
I have been learning buffer overflows and i am trying to execute the following command through shellcode /bin/nc -e /bin/sh -nvlp 4455
. Here is my assembly code:
ANSWER
Answered 2021-Dec-29 at 14:12As you can see in strace
, the execve command executes as:
execve("/bin//nc", ["/bin//nc", "/bin//nc-e //bin/bash -nvlp 4455"], NULL) = 0
It seems to be taking the whole /bin//nc-e //bin/bash -nvlp 4455
as a single argument and thus thinks it's a hostname. In order to get around that, the three argv[]
needed for execve()
is pushed seperately.
argv[]=["/bin/nc", "-e/bin/bash", "-nvlp4455"]
These arguments are each pushed into edx, ecx, and ebx. since ebx needs to be /bin/nc, which was already done in the original code. we just needed to push 2nd and 3rd argv[] into ecx and edx and push it into stack. After that we just copy the whole stack into ecx, and then xor edx,edx
to set edx as NULL.
Here is the correct solution:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install accessibility
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page