Skip to content

Consider alternative method of styling toggle buttons (don't use data-toggle="buttons" for styling)  #20359

Closed

Description

@pkozlowski-opensource

I'm part of the angular-ui/bootstrap team working on native Angular directives using Bootstrap markup.

As part of the effort to migrate to Angular 2 and Bootstrap 4 we've started the ng-bootstrap project here: https://ng-bootstrap.github.io

So far the progress is very smooth and I couldn't be more grateful for all the splendid job that you are doing here on Bootstrap 4.

There is just one glitch that we've encounter so far: when using button groups (ex. check-box ) we need to add data-toggle="buttons" to get proper styling on inputs. While I totally see how it works perfectly with provided jQuery plugins, it is not very intuitive for people not using jQuery but rather using a framework like Angular or React.

Would you consider another method of styling toggle buttons, for example using a dedicated CSS class (eg. .toggle-buttons)?

Activity

  1. added
    css
    v4
    on Jul 25, 2016
  2. cvrebert commented on Jul 25, 2016

    @cvrebert
    Collaborator

    We're trying to axe the buttons.js JavaScript entirely in v4 and replace it with a pure-CSS + :checked-based approach. See #18874.
    I believe that should adequately address your concern?

  3. pkozlowski-opensource commented on Jul 26, 2016

    @pkozlowski-opensource
    Author

    @cvrebert yes, #18874 would solve my problem and will make the whole integration on our side trivial 👍

    Going to close this one and keep an eye on #18874

    Thnx for the quick answer and all the awesome work you guys are doing here!

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

    cssv4

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions