Skip to content

Question: Bootstrap 4.1 - custom-file-label wrong ::after? #26232

Closed

Description

@knoobie

Hey guys, I was updating our 4.0 instance and was checking the delta and was wondering if this was an error?

&:not(:first-child) .custom-file-label::after { @include border-left-radius(0); }

&:not(:last-child) .custom-file-label::after { @include border-right-radius(0); }

especially the line above was ::after as well. Shoudn't it be: ::before if you address the left border? or am I missing something obvious here?

Activity

  1. ysds commented on Apr 10, 2018

    @ysds
    Contributor

    Good catch.

    &:not(:first-child) .custom-file-label::after { @include border-left-radius(0); }

    Shoudn't it be: ::before if you address the left border?

    No, .custom-file-label::before element does not exist.

    So, is .custom-file-label::after correct? No. The left border of Browse button (.custom-file-label::after) never rounds.

    image

    We can remove the Line 51.

  2. added
    css
    v4
    on Apr 10, 2018
  3. added
    has-pr
    on Apr 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    csshas-prv4

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions