question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Slider] Add customization example

See original GitHub issue

I’m reffering to the implementation code here: https://github.com/mui-org/material-ui/blob/next/packages/material-ui-lab/src/Slider/Slider.js Check out this REPL: https://codesandbox.io/s/w65j3jmlr5 the Thumb -MuiSlider activated class is supposed to be rgba(84, 78, 93, 0.16) but is returning as rgba(156, 39, 176, 0.16) (the primary color fade)


    sliderThumb: {
      backgroundColor: colors.primary,
      "&$focused, &:hover": {
        boxShadow: `0px 0px 0px ${conspressedOutlineRadius}px ${
          colors.thumbOutline
        }`
      },
      "&$activated": {
        boxShadow: `0px 0px 0px ${conspressedOutlineRadius * 2}px ${
          colors.thumbOutline
        }`
      },
      "&$jumped": {
        boxShadow: `0px 0px 0px ${conspressedOutlineRadius * 2}px ${
          colors.thumbOutline
        }`
      }
    }
return (
    <MUISlider
      classes={{
        root: classes.slider,
        thumb: classes.sliderThumb,
        track: classes.sliderForeground
      }}
      min={min}
      step={step}
      // onChange={this.handleChange}
      {...props}
    />
  );

How do you override the &$activated class?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
oliviertassinaricommented, Apr 24, 2019

@bh1505 It’s all yours 😃

0reactions
Faliesoncommented, Jun 24, 2019

@bh1505 thank you so much. @oliviertassinari sorry i didn’t get this too. Working at that startup was so crazy I didn’t have time to breath or do any of this good citizen stuff. New company is wicked cool and breezy, looking forward to next time!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom Slider - Orthocare Innovations
You can split your custom slides into rows and columns as well as add custom elements to them. Here are some of the...
Read more >
Design Custom Sliders - MATLAB & Simulink - MathWorks
You can design a custom slider using the toolbar or using the Design tab of the Property Inspector. This example uses both. Add...
Read more >
Customize your Slider Using Template Builder - Supsystic
Documentation Customize your Slider Using Template Builder. Slider Plugin ... It allows to you change an appearance of slider and add to it...
Read more >
[Slider] Add customization example · Issue #15269 · mui ...
component: slider This is the name of the generic UI component, not the React module! docs Improvements or additions to the documentation good ......
Read more >
How To Create Range Sliders - W3Schools
Example ; none · /* Override default look */ appearance ; none · width ; 25px · /* Set a specific slider handle...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found