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.

Property square for variant marble not working

See original GitHub issue

Hey, as stated in the title, the marble variant is with square not working.

v.1.5.8

      <Avatar
        size={40}
        name="sdfasdf"
        variant="marble"
        square={true}
        colors={[
          brandColor.teal500,
          brandColor.cyan600,
          brandColor.blueGray500,
        ]}
      />

CleanShot 2021-08-11 at 23 28 08

Thanks for your work!

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
rjgraziolicommented, Dec 21, 2021

I think that’s a perfectly reasonable way to implement this. And I much prefer the implementation remain simple.

Love this library btw. If you ever need help supporting it in the future. Let me know!

1reaction
josepmartinscommented, Dec 21, 2021

Hey @rjgrazioli thanks for the heads up and finding the issue 😍 .

If I get this right, you’re trying to use both square and circle options on the same app. Avatars are “unique” to it’s name, so even if we add a unique filter ID (and that will be based on the name) you’ll get the same issue with two avatars sharing the same name.

My recommendation for this case, as you mentioned, would be to use the square option for all the Avatars and apply a CSS border-radius for those you need to change to circle ones.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Calculate Square Footage San Diego Marble & Tile
How much tile will you need for your project? Use our easy square footage calculator, with step by step instructions, to help estimate...
Read more >
Chapter 20 - SIGNS | Code of Ordinances | Marble Falls, TX
Shall be non-illuminated, located on private property, and shall not be greater than ten (10) square feet in area. Residential realtor signs shall...
Read more >
house of mosaics - The Home Depot
The House of Mosaics Petrol Marble Mix 11.81 in. x 11.81 in. Square Joint Polished & Matte Marble, Glass & Metal Mosaic Wall...
Read more >
Bottochino Square Pedestal Marble Plant Stand - Wayfair.com
There are two types of natural marble - creme-colored Bottochino and veined Ebony - in this amazingly substantial work that showcases not only...
Read more >
Blue Marble Investments, LLC, Pet itioner- Appellant, ORDER
The property is also improved by 19,240 square feet of asphalt paving and is ... Blue Marble did not explicitly indicate it was...
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