Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change some style that supported by Bootstrap 4 #296

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

waggyman
Copy link

@waggyman waggyman commented Aug 1, 2017

I create this Pull Request because there are some styles that not supported by bootstrap-4.
I Found it when use this lib on my project 😄
This is based on #213

Fixes:

  • Update bootstrap in bower.json
  • Change default icon to fa not glyph
  • Change btn class style

@lodev09
Copy link
Contributor

lodev09 commented Aug 1, 2017

does this affect BS3?

@waggyman
Copy link
Author

waggyman commented Aug 1, 2017

Yes of course, in BS4 btn-default is replaced by btn-secondary and in BS4 glyph is not supported again, so I change the default icon to font-awesome. Do you mind if I add font-awesome in bower.json?

@lodev09
Copy link
Contributor

lodev09 commented Aug 1, 2017

I meant what will happen for those who are still in BS3? We want to support BS4 but we don't want to ditch BS3 support e.g. by changing btn-default to btn-secondary.

Perhaps I'm missing something? @acrobat any thoughts?

@waggyman
Copy link
Author

waggyman commented Aug 2, 2017

Okay I add the btn-default again, I test it in my project again, and luckily it is not problem if we make the class like this

<button class="btn-default btn-secondary btn-sm">

I have try it use BS3 and BS4 and it work like this:

  • If we use BS3 the style for the button is from btn-default
  • And if we use BS4 the style for the button is from btn-secondary

This is the pict when I use BS3

use BS3


And this one when I use BS4

image

@toopay
Copy link
Member

toopay commented Aug 10, 2017

Thanks @awebr000 !
@lodev09 @acrobat Thought on this? I think i'm gonna start to split the development branches into v2.x and this can be a baseline for v3.x branch - which happens to be a master at this point.

@lodev09
Copy link
Contributor

lodev09 commented Aug 10, 2017

@toopay yep I think that's the best way to handle the new bootstrap 4 like you did on previous versions :)

@buuug7
Copy link

buuug7 commented Aug 11, 2017

@toopay where is toopay? i can't wait this for bs4 , git new branch bs4 for this feature

@stramel
Copy link

stramel commented Aug 11, 2017

Bs4 beta was dropped a few hours ago

@bnymn
Copy link

bnymn commented Nov 4, 2017

Preview option does not work, is it just me?

@niknokseyer
Copy link

This looks good. Will try to pull and test this one.

@ghiscoding
Copy link

A bit late on the show, but here are some thought.

@waggyman @lodev09
If you want to support BS3 and BS4 (which you should since a lot of us didn't switch yet), then you shouldn't delete the glyph icons completely, as can be seen on this line. I agree to change the default to "fa" but removing the glyph icon names entirely is a mistake since it could break some people's editor if they choose to keep the glyph as their default. Also, your bower file is quite outdated now on the dependencies side of it "bootstrap": "v4.0.0-alpha.6"

@niknokseyer
I saw the "Preview" as broken too, then I found here that we can replace the parser with our own and that is what I did to fix mine.

$('textarea').markdown({
  parser: convertFunction, // or whatever
});

@roipoussiere
Copy link

Any news here? I'm also interested by the bs4 support, is there something missing to merge this?

holidayworking pushed a commit to naviplus-asp/bootstrap-markdown that referenced this pull request Jan 28, 2019
Change some style that supported by Bootstrap 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants