question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

double arrow icons in b-form-select if scss is imported

See original GitHub issue

Describe the bug

A clear and concise description of what the bug is.

Steps to reproduce the bug

  1. git clone git@github.com:kzw/vuetest.git
  2. npm i && npm run dev
  3. See double arrows in form select
  4. In css and override branches you will not see double arrows

Expected behavior

A clear and concise description of what you expected to happen.

Versions

Libraries:

  • BootstrapVue: 2.3.0
  • Bootstrap: 4.4.1
  • Vue: 2.6.11

Environment:

  • Device: mac
  • OS: 10.15
  • Browser: chrome, ff, safari
  • Version: latest

Demo link

Additional context

In branch css I use https://bootstrap-vue.org/docs/#vue-cli-3 to import css files into main.js

In branch override I use a style as recommended in https://stackoverflow.com/questions/48287610/bootstrap-4-beta-options-menu-has-double-dropdown-icons/48288103

In branch master I use instructions in https://bootstrap-vue.org/docs/#using-module-bundlers to import custom.scss into main.js

I had also been creating custom.css from custom.scss using sass command line utility and then importing custom.css with the same double arrow bug. This approach is not in any branches though.

I believe that there is something wrong with merging bootstrap and bootstrap-vue in scss first.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tmorehousecommented, Feb 2, 2020

And when compiling the SCSS we do:

node-sass --output-style expanded \
          --source-map true \
          --source-map-contents true \
          --precision 6 \
          scripts/build.scss \
          dist/bootstrap-vue.css
postcss --config scripts/postcss.config.js \
        --replace dist/bootstrap-vue.css

To auto prefix based on our browserlist.rc file

0reactions
tmorehousecommented, Feb 2, 2020

When auto-prefixer is used when compiling the SCSS, you should see:

image

If you only see appearance: none and not the prefixed versions as well, then you are missing auto-prefixer in your SASS postcss compile pipeline.

In our postcss.config.js we have:

module.exports = ctx => ({
  map: {
    inline: false,
    annotation: true,
    sourcesContent: true
  },
  plugins: {
    autoprefixer: {
      cascade: false
    }
  }
})
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to change arrows color in Bootstrap Vue? - Stack Overflow
You have to change the background of your .custom-select. Arrow color changed: new Vue({ el: "#app", data() { return { selected: null, ...
Read more >
Icons | BootstrapVue
Bootstrap Icons are SVGs, so they scale quickly and easily and can be styled with CSS. While they are built for Bootstrap, they...
Read more >
Change the double arrow icon in connection list
The url of the images has changed to be in /_layouts/15/images/. So your css should be something like:
Read more >
Sass (SCSS) | Font Awesome Docs
No problemo, Font Awesome has an SCSS version if you'd prefer to import our ... If a project uses Duotone icons, you'll need...
Read more >
Remove arrow/icon in menu - WordPress.org
The CSS code on the site you provided didn't work for you because you are using Elementor Header Footer plugin to create the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found