Git Product home page Git Product logo

ability-attributes's Introduction

Ability Attributes

A runtime accessibility attributes integrity validator.

About

This project is pretty much in a work-in-progress proof-of-concept state. More docs and examples are to come.

It is very easy to make nonsense setting the accessibility-related attributes for the DOM elements and it takes time to learn how to set them properly. And because those attributes make sense for the screen readers only, it is very hard to tell if nothing is broken in a big application. This tool allows to specify a schema for the attributes and see all schema violations at runtime during the developlent process.

Contributing

Contributions are welcome (see the CONTRIBUTING file), though please keep in mind the work-in-progress proof-of-concept state. Might make sense to just observe/discuss until the thing gets stable and well-documented.

License

This project is licensed under the MIT License, see the LICENSE file for details.

ability-attributes's People

Contributors

dannyvv avatar microsoftopensource avatar msftgits avatar mshoho avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ability-attributes's Issues

Feature request: Allow to override multiple parent tags with a single entry in child

I'd like to be able to override used params, which are defined in the parent component with multiple tags, with a single entry in the child component, instead of listing all the individual tags one by one in the child.

Current state

{
  "parent": {
    "parameters": [
      {
        "ref": "$someRule",
        "optional": true,
        "overridable": "someRule"
      }
    ],
    "tags": {
      "<button>": {"..."},
      "<input>": {"..."}
    }
  },
  "child": {
    "inherits": "parent",
    "parameters": [
      {
        "overrides": "someRule",
        "ref": null
      }
    ],
    "tags": {
      "<button>": {"<someRule-overrides>"},
      "<input>": {"<someRule-overrides>"}
    }
  }
}

Proposed state

{
  "parent": {
    "parameters": [
      {
        "ref": "$someRule",
        "optional": true,
        "overridable": "someRule"
      }
    ],
    "tags": {
      "<button>": {"..."},
      "<input>": {"..."}
    }
  },
  "child": {
    "inherits": "parent",
    "parameters": [
      {
        "overrides": "someRule",
        "ref": null
      }
    ],
    "tags": {
      "<button>, <input>": {"<someRule-overrides>"},
    }
  }
}

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.