PricingBlog

Border radius not working on mobile

  • yoelfdz-1205564785219862558

    yoelfdz

    2 years ago

    Hey there everyone, I'm running into some issue with border radius of every single element of my toddle project. Everything is as configured both in the editor and published desktop view, but on mobile most radius do not appear (screenshot attached). I have tried in different devices and browsers, happening on all of them
    1205564785769320488-IMG_9B46131427BB-1.jpeg
  • yoelfdz-1205565199600320538

    yoelfdz

    2 years ago

    On desktop:
    1205565199273304124-Captura_de_pantalla_2024-02-09_a_las_18.25.13.png
  • Tod-1205565202314166302

    Tod

    2 years ago

    Great energy @! Your continuous contribution to the toddle Community just made you advance to Community Level 1!
  • lucasg-1205565306324385892

    Lucas G

    2 years ago

    Looks clean! Nice UI
  • Can you share the settings for the element?
  • Assuming no accidental breakpoint settins were added to it?
  • yoelfdz-1205573741787087009

    yoelfdz

    2 years ago

    Thanks Lucas!
    There are no breakpoints on those elements. Here is the white button css:
    gap: var(--sm)
    color: var(--button-secondary-fg, #344054)
    height: 44px
    display: flex
    outline: none
    font-size: 14px
    box-shadow: 0px 1px 2px 0px hsla(, %, %, 0.05)
    align-items: center
    font-weight: 600
    line-height: 20px
    padding-top: 10px
    padding-left: 14px
    border-radius: 0.5rem
    outline-color: #D0D5DD
    outline-style: solid
    outline-width: 1px
    padding-right: 14px
    flex-direction: row
    padding-bottom: 10px
    justify-content: center
  • Also: I think the issue comes from the outline not the border itself
  • (Since all components having this issue have an outline in common
  • lucasg-1205604958951710781

    Lucas G

    2 years ago

    Interesting
  • lucasg-1205605254725500949

    Lucas G

    2 years ago

    I think 'Outline' is squared by default
  • Since it is an accessibility feature/style as well
  • lucasg-1205605731441709136

    Lucas G

    2 years ago

    You'd have to use alternative styles such as border or a pseudo style instead if you want to avoid it
  • But you shouldn't remove it since it is an a11y thing too
  • yoelfdz-1205610162581274714

    yoelfdz

    2 years ago

    You are right, just tried replacing outline with "border: 1px solid #D0D5DD;" and works fine. Thank you mate!