Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text is not centered horizontally #54

Open
donfour opened this issue Apr 18, 2023 · 0 comments
Open

Text is not centered horizontally #54

donfour opened this issue Apr 18, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@donfour
Copy link
Contributor

donfour commented Apr 18, 2023

Describe the bug

Figma design (Link to Figma component):
Screen Shot 2023-04-18 at 1 55 23 PM

Rendered component:
Screen Shot 2023-04-18 at 1 55 02 PM

Generated code:

import React from "react";
import "./style.css";

const GeneratedComponent = () => (
  <div className="flex flex-row justify-center  pt-4 pr-2.5 pb-4 pl-2.5 rounded w-80 h-14 bg-blue-600">
    <p className="font-body text-xl whitespace-nowrap w-[197px] text-white text-opacity-100 leading-6 font-semibold">
      Request to Book
    </p>
  </div>
);

export default GeneratedComponent;
@donfour donfour added the bug Something isn't working label Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant