-
Notifications
You must be signed in to change notification settings - Fork 5
Rewrite paper-progress as paper-linear-progress #1
base: master
Are you sure you want to change the base?
Rewrite paper-progress as paper-linear-progress #1
Conversation
5d76415
to
7ce9551
Compare
}, | ||
"devDependencies": { | ||
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0", | ||
"test-fixture": "PolymerElements/test-fixture#^1.0.0", | ||
"paper-button": "PolymerElements/paper-button#^1.0.0", | ||
"web-component-tester": "*", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is orthogonal to this change, but could you please set this dependency to reflect the following configuration:
"web-component-tester": "polymer/web-component-tester#^3.4.0"
.
7ce9551
to
895da8b
Compare
All changes made! |
<template> | ||
<style> | ||
:host { | ||
--height: var(--paper-linear-progress-height, 4px); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be a good idea to prefix this "temp" custom property with some naming convention that makes it more specific to the paper-linear-progress
use case. The likelihood that the current name will actually cause a problem is very small, but from a conventions perspective it would be better to set a good example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about --element-height
? is there an example of prefixing custom properties in the way you specified?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really - you are actually the first person to create temp custom properties this way that I can think of. The concern is that we don't want to accidentally assign a value to a property that will cascade into a child element and be applied unintentionally. --element-height
is probably fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--element-height
it is :)
895da8b
to
8e97c64
Compare
}); | ||
}); | ||
|
||
function flushPromise() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be helpful for these helpers to appear towards the top of the suite, or else in a separate helpers.js
.
Web Component Tester includes a feature that allows for easy a11y auditing via our test suites. It would be nice to see this used in this element's test suite. Adding it is super easy. Here is an example from Basically, you pick one or more appropriate |
FYI I have begun Polymer/polymer#3163 in order to potentially address the If this lands in short order, it would be nice if we could remove the dependency on |
8e97c64
to
68b6a41
Compare
@notwaldorf added |
@traviskaufman Unfortunately, this is not true. Removing Thanks for your patience while I work to unblock this. |
Ah right. Okay SG. |
68b6a41
to
88a02a0
Compare
@cdata updated with indeterminate animation that works across all browsers. |
88a02a0
to
92f4e3f
Compare
This commit introduces a complete rewrite of `paper-progress` into a new `paper-linear-progress` element. Features include the following: - New semantics regarding `secondary-progress` which now becomes `buffer-value`, as it's meant to be within the spec. - Removal of `IronRangeBehavior`, since the linear progress element is not an interactive UI element, nor does it have anything to do with representing a range as the "range"-based input elements connote. - Slimmed down custom property API which exposes only the facets of the element meant to be modifiable in terms of the spec. - Implementation of indeterminate animation which adheres to spec. - Support for reversing the element, including all its transition/animations. - Support for a buffering state. - Complete and comprehensive test suite which adds full code coverage to the component. - Revamped demo page which shows all possible functionality of the element.
92f4e3f
to
6093be9
Compare
Any updates on this lately? Given that this PR has been out for almost two months I'd love to be able to merge it in! 😄 |
Polymer/polymer#3163 finally merged. The release is still pending. In the mean time, it looks like this branch needs to be rebased (most likely due to script-generated artifacts that get automatically merged into master branch). |
@cdata I pulled v1.3.0 and replaced all of the In my source code I have :host(.buffering.reversed) #bufferingDots {
-webkit-animation: buffering-reverse 250ms infinite linear;
animation: buffering-reverse 250ms infinite
}
/* ... */
@keyframes buffering-reverse {
to {
-webkit-transform: translateX(calc(2.5 * var(--element-height)));
transform: translateX(calc(2.5 * var(--element-height)));
}
} and here's a screenshot of the output in DevTools Notice how the |
This commit introduces a complete rewrite of
paper-progress
into a newpaper-linear-progress
element. Features include the following:secondary-progress
which now becomesbuffer-value
, as it's meant to be within the spec.IronRangeBehavior
since the linear progress element is not aninteractive UI element, nor does it have anything to do with
representing a range as the "range"-based input elements connote.
element meant to be modifiable in terms of the spec.
transition/animations.
the component.
element.