Here is a color scheme that maintains the look and feel of bootstrap but passes WCGA 2.0 AA guidelines for accessible colors (4.5:1 contrast ratio). Deque Logo. The authoring practices does not cover aria-expanded but its an allowed attribute on role=button and it is very common to see buttons that expand and collapse content used in modern websites. how do we aria-label for custom button in angular when screen reader hover on the button element, Your email address will not be published. is basically the same as a unless you have the href attribute. Once you are done with . 'inset':'outset'); if(this.style.borderStyle=='inset'){this.setAttribute('aria-expanded','true');$('#divExpand').toggle()}if(this.style.borderStyle=='outset'){this.setAttribute('aria-expanded','false');$('#divExpand').toggle()}". Inconsistent button designs. Gray (#767676) on white Purple (#CC21CC) white Blue (#000063) on gray (#808080) Red (#E60000) on yellow (#FFFF47) For many of us, some of these combinations are not very readable. Although aria-haspopup can also be used on role=button, well save that for another post on the menu button pattern. Ah this is really cool! When using the generator you have the option of either using the browser's native color pickers (the default) or switching to text input. Find a digital accessibility issue? When in doubt, don't rely on color as your only indicator alone. So both a