bootstrap-social icon indicating copy to clipboard operation
bootstrap-social copied to clipboard

Bootstrap 4 Support

Open niftylettuce opened this issue 7 years ago • 13 comments

Per my findings here https://github.com/twbs/bootstrap/issues/19877 and here https://github.com/lipis/bootstrap-social/issues/91, there are a few missing variables.

// bootstrap-social
$line-height-computed: floor(($font-size-base * $line-height-base));
$padding-base-vertical: $btn-padding-y;
$padding-base-horizontal: $btn-padding-x;
$font-size-large: $font-size-lg;
$padding-large-vertical: $btn-padding-y-lg;
$padding-large-horizontal: $btn-padding-x-lg;
$font-size-small: $font-size-sm;
$padding-small-vertical: $btn-padding-y-sm;
$padding-small-horizontal: $btn-padding-y-sm;

@import '../../../node_modules/bootstrap-social/bootstrap-social.scss';

However I noted that the sizing of the buttons seems to be off still with V4, so if I use this package, and the above code, but exclude the class btn-social, it at least sets the colors for me.

niftylettuce avatar Aug 10 '16 16:08 niftylettuce

I am using this in CrocodileJS at https://github.com/crocodilejs/crocodile-node-mvc-framework (release v1.0.0 will be out soon with this included).

screen shot 2016-08-10 at 12 49 26 pm

niftylettuce avatar Aug 10 '16 16:08 niftylettuce

Soon I'll have to check what is going to happen with BS4 :)

lipis avatar Sep 06 '16 22:09 lipis

+1

gitviola avatar Sep 16 '16 16:09 gitviola

+1

anysomewhere avatar Sep 20 '16 19:09 anysomewhere

+1 !

EDIT: It seems to be working fine.. Here's what happens when I tried it :

bootstrap-social-issue-2

vvzen avatar Feb 14 '17 15:02 vvzen

Update: Bootstrap 4 Beta's button-variant mixin has changed per https://github.com/twbs/bootstrap/commit/597e9f861807868d8d13bac93e8a328493fe6d54#diff-edb9cd89b66120ef946a81de31f6bb06R6.

You need to modify bootstrap-social to use a different approach. Bootstrap 4 Beta has a mixin called color-yiq that automatically calculates the best font color for a button depending the background-color, so we don't need to explicitly pass a font color.

You can use my fork if interested until my pull request for BS 4 support at https://github.com/lipis/bootstrap-social/pull/162 is accepted and released:

npm install niftylettuce/bootstrap-social#gh-pages

or if you're using yarn:

yarn add niftylettuce/bootstrap-social#gh-pages

I've opened a pull request for adding Bootstrap 4 support.

niftylettuce avatar Sep 18 '17 05:09 niftylettuce

Hi folks, see http://niftylettuce.com/bootstrap-social/ for documentation for Bootstrap 4 Beta until my pull request is accepted. Thanks! Make sure you yarn add niftylettuce/bootstrap-social#gh-pages. Otherwise see my fork at https://github.com/niftylettuce/bootstrap-social for the latest assets.

niftylettuce avatar Sep 18 '17 06:09 niftylettuce

@niftylettuce u need update the live demo link in ur fork

ivanmaxlogiudice avatar Sep 20 '17 02:09 ivanmaxlogiudice

@Sylvert0 done, thx

niftylettuce avatar Sep 20 '17 05:09 niftylettuce

Hey, just wanted to bump this PR to see if it can be merged into a major release soon? Would love to start using this but my project is already using bootstrap 4.0.

mallardduck avatar Apr 01 '18 00:04 mallardduck

B4 left beta in January 2018, now it's at 4.1.

zgoda avatar May 30 '18 12:05 zgoda

I've created a solution myself: https://github.com/Woodehh/social-buttons

It doesn't depend on Bootstrap in any way, so future proof! :)

Woodehh avatar Jun 14 '18 11:06 Woodehh