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.

Styles not accessible

See original GitHub issue

I’m working with your date picker, and while it’s a great component I noticed a major problem with attempting to style it: You can’t. The provided classes are our only option, and that feels like an incomplete solution.

Perhaps we could attach a custom class which allows the parent component to assign styles? Another option would be allowing style settings to get passed in, but that seems clunky and inflexible for the complexity it would involve.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
ghetolaycommented, Oct 17, 2016

@gelliott181 I’m working on a custom annotation @DatePicker so you would just have to do that on the new implementation :

@DatePicker({
   selector: 'my-datepicker',
   styles: ''
})
export class MyDatePickerComponent extends DatePickerComponent { }

But I’m having difficulties with aot compilation. If I fail the temporary solution will becomes the only available solution, except we will export template and component on the module for clean imports.

0reactions
jyotidhiman0610commented, Sep 6, 2018

I am unable to add custom style to the component, can anyone help me with it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is my CSS style not being applied? - Stack Overflow
The question effectively asks people to debug a large piece of HTML and CSS code, without actually disclosing the code or giving access...
Read more >
How to Troubleshoot CSS Not Working - WPForms
In this tutorial, we'll walk through options to troubleshoot why your CSS is not working and offer possible solutions. Browser Caching.
Read more >
How to Fix CSS file is not Working with HTML in Chrome
Fix CSS file is not Working with HTML in Chrome | Problem Solved Show SupportBuy Me a COFFEE: https://buymeacoffee.com/Webjahin  ...
Read more >
CSS Inline styles | Nomensa
CSS Inline styles and why they are considered harmful for accessibility ... Although the adoption of the CSS specification has not been without...
Read more >
CSS and JavaScript accessibility best practices
We hope this article has given you a good amount of detail and understanding about the accessibility issues surrounding CSS and JavaScript ...
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