Coder Social home page Coder Social logo

iron-a11y-announcer's People

Contributors

achernya avatar addyosmani avatar andybons avatar aomarks avatar bicknellr avatar cdata avatar dependabot[bot] avatar dfreedm avatar e111077 avatar garlicnation avatar keanulee avatar notwaldorf avatar rictic avatar samuelli avatar tedium-bot avatar tjsavage avatar usergenic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iron-a11y-announcer's Issues

Generates errors after html2canvas is used on the page in FireFox.

Generates errors after html2canvas is used on the page in FireFox.

When using this element in FireFox, errors will be generated after the page is rendered by html2canvas.

html2canvas is a common library for generating an image from the DOM:
https://github.com/niklasvh/html2canvas

html2canvas clones the entire document:
https://github.com/niklasvh/html2canvas/blob/master/src/Clone.js#L56

When that is done, a second iron-a11y-announcer element is constructed and begins listening for events on document.body:
https://github.com/PolymerElements/iron-a11y-announcer/blob/master/iron-a11y-announcer.html#L83

At this point there will be multiple iron-a11y-announcer elements listening for announce events, but the second instance will generate exceptions attempting to call 'this.announce()' method.

Expected outcome

iron-a11y-announcer and html2canvas can be used in conjunction.

Actual outcome

iron-a11y-announcer generates errors after html2canvas is used.

Live Demo

http://jsfiddle.net/blois/zvgLtmnd/

Examine console output in FireFox.

Steps to reproduce

  1. Put a iron-a11y-announcer element in the page.
  2. Open the page in FireFox.
  3. load https://github.com/niklasvh/html2canvas
  4. html2canvas(document.body)
  5. Dispatch an iron-announce event.

Browsers Affected

  • Chrome
  • Firefox
  • Safari 9
  • Safari 8
  • Safari 7
  • Edge
  • IE 11
  • IE 10

How to set mode when using requestAvailability

Description

iron-a11y-announcer exposes a 'mode' property that users can use to control the politeness setting, but they can only do this if they create the element themselves and not if they or some other component they use like paper-toast uses requestAvailability.

Expected outcome

Users should be able to control the politeness when using requestAvailability.

Actual outcome

Users cannot control politeness level when using requestAvailability.

[A11y 8/25] Announcer accessibility

With VoiceOver/Chrome: I can't access the text to the right of the announce buttons. Am I supposed to be able to? After reaching the third announce button, I can then access the "hello my name is ava", but the focus ring appears below the buttons and this doesn't seem logical. Same occurs with CHrome OS / Chromevox. I might just be unclear on how this should work though.

IronA11yAnnouncer.requestAvailability static method missing from TypeScript .d.ts file.

iron-a11y-announcer.d.ts is missing an entry for the static IronA11yAnnouncer.requestAvailability() method. This was discovered while investigating using TypeScript in Chromium's WebUI codebase, and we had to add this manually for now with the following diff

diff --git a/third_party/polymer/v3_0/components-chromium/iron-a11y-announcer/iron-a11y-announcer.d.ts b/third_party/polymer/v3_0/components-chromium/iron-a11y-announcer/iron-a11y-announcer.d.ts
index b60ac3ba18a0..1646ce15f0f0 100644
--- a/third_party/polymer/v3_0/components-chromium/iron-a11y-announcer/iron-a11y-announcer.d.ts
+++ b/third_party/polymer/v3_0/components-chromium/iron-a11y-announcer/iron-a11y-announcer.d.ts
@@ -34,6 +34,7 @@ declare class IronA11yAnnouncer {
    */
   announce(text: string): void;
   _onIronAnnounce(event: any): void;
+  static requestAvailability(): void;
 }
 
 interface IronA11yAnnouncer extends LegacyElementMixin, HTMLElement {

@usergenic
I believe this file is generated automatically at [1], and therefore possibly a bug in the gen-typescript-declarations tool itself?

[1] https://github.com/PolymerElements/iron-a11y-announcer/blob/master/package.json#L27

Cannot read property 'appendChild' of null

I've done a build w/ iron-a11y-announcer 2.0.0 and while it doesn't impact the app the console will throw the error when attempting to append itself to the body of the document. Not sure how it's possible or if there needs to be some checking for body being ready before attempting to append.

2017-08-05_10-29-27

Add Version to Package.json for Yarn Installation

Description

When trying to install via Yarn, a version number is required in package.json.

Expected outcome

The package should install without errors.

Actual outcome

error Can't add "@bower_components/iron-a11y-announcer": invalid package version undefined.

Steps to reproduce

  1. yarn add PolymerElements/iron-a11y-announcer

Browsers Affected

No browsers affected.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.