material-components-web icon indicating copy to clipboard operation
material-components-web copied to clipboard

[mdc-linear-progress] scss files are not updated with new class names

Open kvdheuvel opened this issue 6 years ago • 6 comments

Bug report

The new mdc-linear-progress scss files still uses the old class names for buffering. mdc-linear-progress__buffering-dots vs mdc-linear-progress__buffer-dots. The styling is not applied to the new classes.

Steps to reproduce

  1. Open a new mdc-linear-progress
  2. Set the state to buffering
  3. Styling is not applied

Actual behavior

No styling is applied to the buffer-dots classes

Expected behavior

Styling applied to the buffer-dots classes

Your Environment:

Software Version(s)
MDC Web 4.0.0
Browser Chrome (but expect all)
Operating System Windows

Additional context

The demo page isnt updated either

kvdheuvel avatar Mar 11 '20 07:03 kvdheuvel

That change has not been released yet, which is why the classes aren't working on v4.

You can try installing the canary version from npm if you'd like to see the new features!

asyncliz avatar Mar 11 '20 16:03 asyncliz

@asyncLiz What do you mean with the change not being release yet? We installed [email protected] and tried to use the mdc-linear-progress but it is not working. The component itself has the new classnames but the scss still uses the old classnames.

Or am I missing something here?

kvdheuvel avatar Mar 19 '20 09:03 kvdheuvel

v4.0.0 uses mdc-linear-progress__buffering-dots. The latest uses mdc-linear-progress__buffer-dots.

Neither version's component directly refers to the dot class, that should be provided by the end user in markup.

Can you point out where in v4.0.0 it is referencing the newer mdc-linear-progress__buffer-dots class?

asyncliz avatar Mar 19 '20 16:03 asyncliz

Right here at the basic usage html structure:

`

`

kvdheuvel avatar Mar 20 '20 08:03 kvdheuvel

That link is pointing to the master branch, which is the canary release of 6.0.0.

If you're on an older version, you can switch to that version's tag to get the correct documentation: https://github.com/material-components/material-components-web/tree/v4.0.0/packages/mdc-linear-progress#html-structure.

asyncliz avatar Mar 20 '20 17:03 asyncliz

@asyncLiz We have been using MDC since release 0.12 or something like that and I never noticed that tag. Thank you for your help (Y)

kvdheuvel avatar Mar 23 '20 08:03 kvdheuvel