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.

[Feature Request] Ability to style components

See original GitHub issue

What problem would this feature solve?

Currently Intercom allows certain positional changes. It is not possible to mirror this, since the <Intercom> component uses hard-coded styling, other than the color

Describe the solution you’d like to see

Ability to pass in a style object to override any defaults

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
mikedijkstracommented, Aug 24, 2021

Hi @taijuten — Thanks for logging this issue.

Ideally we’d like to make our component APIs the same as the provider APIs so you can almost just copy/paste the settings. In addition to this it’s easier to manage responsive behaviour inline with how the provider behaves.

Looking at the Intercom Docs it seems we should add support for:

  • alignment: “left” or “right” (default to right)
  • vertical_padding: Minimum value of 20, not used on mobile
  • horizontal_padding: Minimum value of 20, not used on mobile

Is this something you’d like to contribute to the package? If so we can help you work through a PR.

0reactions
Undistractioncommented, Jun 15, 2022

In fact, I think adding a class is definitely worthwhile because it would allow both elements to be styled at the same time:

.live-chat-loader-placeholder,
.intercom-container {
  z-index: XXX;
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature Request: Ability to style InputAdornment #36 - GitHub
Feature Request : Ability to style InputAdornment #36 ... I'm open for exposing classes like other Material-UI components to give you some ...
Read more >
Component color and style themes – Adobe XD Feedback
Component color and style themes. Let's say I create a simple button component. Then I want to have an outlined button.
Read more >
Ability to style multiple form elements at once
Please create ability to select multiple form elements at once and apply style. Example: * Expand all form elements. * CTRL + left...
Read more >
API Reference - styled-components
A helper component for modifying how your styles are processed. For a given subtree involving styled-components, you can customize various behaviors like how ......
Read more >
How To Style React Components | DigitalOcean
In this tutorial, you'll learn three different ways to style React components: plain Cascading Style Sheets (CSS), inline styles with ...
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