brightspaceui / text-input Goto Github PK
View Code? Open in Web Editor NEWPolymer-based web component for D2L text inputs
Home Page: http://ui.developers.brightspace.com
License: Apache License 2.0
Polymer-based web component for D2L text inputs
Home Page: http://ui.developers.brightspace.com
License: Apache License 2.0
https://github.com/BrightspaceUI/text-input/blob/master/d2l-text-input.html#L65
input:invalid,
input[aria-invlid='true'] {
border-color: var(--d2l-color-cinnabar);
}
Button elements have a default type value of "submit", which will automatically submit a parent form when the user hits enter. This is typically not desired behaviour.
To prevent this, lets default the "type" attribute to "button".
This will be a breaking change, so will require a major version bump.
Both aria-labelledby
and aria-describedby
won't work with web components and shadow DOM, because the IDs of those elements are out of scope.
2 potential solutions:
<d2l-label text="label for input">
<d2l-text-input></d2l-text-input>
</d2l-label>
Not sure that'll work, but if inside <d2l-label>
it renders an actual <label>
element, it might.
Like this: <d2l-text-input label="label for input">
. We'd then need to handle various different kinds of labels eventually -- above, beside, etc. Probably needs more thought around how this can be shared across many different kinds of inputs.
https://github.com/BrightspaceUI/text-input/blob/master/d2l-text-input.html#L245
/**
* Value of the input.
*/
value: {
type: String
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.