Skip to content

Custom select focus glow not correct/consistant. #25656

Description

@Bodom78

Live example can be see on the docs page https://getbootstrap.com/docs/4.0/components/forms/#select-menu

When you focus the glow is not consistant with other inputs.

bscs1

Valid and Invalid apply the correct focus glow when I add the classes via console.
bscs2
bscs3

Activity

  1. Bodom78 commented on Feb 19, 2018

    @Bodom78
    Author

    $custom-select-focus-box-shadow: inset 0 1px 2px rgba($black, .075), 0 0 5px rgba($custom-select-focus-border-color, .5) !default;

    Should be

    $custom-select-focus-box-shadow:    $input-focus-box-shadow !default;
    

    Or

    $custom-select-focus-box-shadow:    $input-btn-focus-box-shadow !default;
    
  2. added
    cssSass sources or compiled CSS
    v4v4, the frozen docs on gh-pages
    on Feb 19, 2018
  3. victorwpbastos commented on Mar 20, 2018

    @victorwpbastos

    Same here

  4. added a commit that references this issue on May 12, 2018
    1169ac7
  5. MoritzBru commented on May 21, 2018

    @MoritzBru

    Also visible in the screenshots that firefox does not respect the outline: 0; on select when you use the keyboard to focus :(
    However there is a really hacky way to get rid of it: https://stackoverflow.com/questions/3773430/remove-outline-from-select-box-in-ff/18853002#18853002

  6. martinbean commented on May 30, 2018

    @martinbean
    Contributor

    As well as the “glow” styling not being consistent, custom selects don’t have an inner shadow when $enable-shadows is true, leading it to look inconsistent to other input types on the same page:

    screen shot 2018-05-30 at 20 14 52

  7. added
    has-prAn open pull request addresses it
    on Jun 24, 2018
  8. added a commit that references this issue on Jun 24, 2018
    637d2c6
  9. added a commit that references this issue on Jun 24, 2018
    d78aac0
  10. added a commit that references this issue on Jun 27, 2018
    4f1a652
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

    cssSass sources or compiled CSShas-prAn open pull request addresses itv4v4, the frozen docs on gh-pages

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions