React Js / Semanti c React / кнопка дисплея - PullRequest
1 голос
/ 05 января 2020

У меня проблема с оставлением текста моей кнопки на одной строке. Я использовал встроенный дисплей, но он не работал

  <ButtonRegister> Não tem uma conta? <h5>Registre-se </h5></ButtonRegister>

стиль:

export const ButtonRegister = styled(Button)`
display: inline !important;
background: transparent !important;
color: #000 !important;
text-align: center !important;
align-items: center;
padding-left: 0 !important;
margin-top: 10px !important;
width: 100%;
&:hover {
    background: transparent !important;
    color: #21deff !important;
}

код: https://codesandbox.io/s/old-platform-u9lqq

1 Ответ

1 голос
/ 05 января 2020

Просто сделайте h5 дисплей: встроенный или встроенный блок. По умолчанию h5 это дисплей: блок. Вот почему это на другой линии

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...