Skip to content

One-click copy for should have default class to "fixed" instead of "absolute" #89

@sean-erick-ramones

Description

@sean-erick-ramones

Currently when you click on the copy button of a pattern, it would have the styles default to:

<div className="min-h-screen w-full relative">
  {/* Radial Gradient Background */}
  <div
    className="absolute inset-0 z-0" <-- THIS PART
    style={{
      ... styles go here...
    }}
  />
     {/* Your Content/Components */}
</div>

I think it would be better to make it className="fixed inset-0 z-0" so that it would be fixed when you scroll -- the same behaviour that would mimic the site you are previewing.

It's not much, but just a small change xd.

Very cool pattern library tho.

Cheers 🍻

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions