The close icon for v-chip in Vuetify isn't displaying as expected

After upgrading Vuetify from version 1.5 to the latest 2.1.12, I noticed that the close icons on my v-chips are missing. They are nowhere to be seen.

Even when creating a basic v-chip, the icon does not appear. Here's an example:

<v-chip close>No close icon, why?</v-chip>

In Vuetify version 1.5, adding the "close" prop resulted in the rendering of a div inside the chip with the class "v-chip__close". However, in version 2.1.12, this specific HTML code is absent, hence the missing close button.

Furthermore, the sort arrow icon and the next/previous page icon in the data-table headers are also not displaying. I suspect it may be due to the same reason. While the tables remain sortable and page-switchable, the icons are invisible.

Update: Checkboxes and radio buttons are experiencing the same visibility issue. They exist on the page and can be clicked, but they are not visible.

Here's a snippet from app.js:

import Vue from "vue";
// other imports...
Vue.use(require("vue-shortkey"));
// more code...
export { app, router, store };

Any recommendations for troubleshooting or modifications that could potentially resolve these issues?

Update Since Font Awesome was not being utilized (potentially added by a previous developer), I completely removed the file `icons.js` and commented out related imports. Standard icons still remained unseen though.

Revised app.js (with fontawesome-related content commented out):

import Vue from "vue";
// other imports...
Vue.use(require("vue-shortkey"));
// more code...
export { app, router, store };

Update Solution I included this line in my app.js file and now everything seems to be functioning as expected:

const vuetify = new Vuetify({
      icons: {
        iconfont: 'fmd',
      },

Answer №1

To efficiently import font-awesome, I recommend the following method:

import { library } from '@fortawesome/fontawesome-svg-core'
import { faEnvelope, faGraduationCap, faHome, faTags, faList, faSpinner } from '@fortawesome/free-solid-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'

library.add(faEnvelope, faGraduationCap, faHome,faTags, faList, faSpinner)

Vue.component('font-awesome-icon', FontAwesomeIcon)

Answer №2

The issue has been resolved with the help of the suggestions I received. Ultimately, I had to utilize "md" as the iconfont, as mentioned in the original post.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Struggling to retrieve CSS property from a child element?

Check out this HTML snippet: <div id="ctr" class="faden-slider-container"> <div class="conteneur-image" ></div> <div class="conteneur-image" ></div> <div class="conteneur-image" ></div> </div> ...

Implementing a click event for a jQuery slider

Welcome to the website I manage: The creator of the website implemented an image slider using jq javascript, and I need some assistance in adding functional links on the <li><a> tags to trigger the animation of the script. Below is the code s ...

Struggling to connect with PouchDB within my HTML-based Web application

I am looking to integrate pouchDB into my WebApp so that upon clicking a button, the data from a JSON file will be saved to pouchDB. In the initial stage in my index.html, I included the following: <script type="module" src="pouchdb/packa ...

Trouble displaying Bar Graph in chart.js using PHP

I am facing a challenge with creating a bar graph using chart.js that loads data from a PHP array via ajax. The data is successfully loaded through ajax, as confirmed in the console, but I am unable to display it on the graph. Here's what I see in the ...

Tips for submitting an Ajax Form with identical Name attributes?

One part of my form consists of input fields with the same 'Name' values that will be stored as an Array. I am attempting to send these values via AJAX to PHP for updating my database. The challenge I'm facing is figuring out how to send t ...

Ways to replicate inputting into a textarea field with Javascript or Jquery?

I am currently working with a textarea that utilizes a jquery plugin to automatically resize as the user types. However, I am encountering an issue where users are unable to fully view and edit previously typed messages due to the default settings of the t ...

The angularjs response data is mysteriously missing from the console display

I am struggling with the code below, as the data is not showing in the console log. I am new to Angular and would appreciate some help on how to display the data in HTML. this.$http.get(properties.client+'/123') .then(response => { ...

Change the background color of the top element box when scrolling

The code I have implemented reflects my intentions. html: <div id="one" class="box"></div> <div id="two" class="box"></div> <div id="thr" class="box"></div> <div id="fou" class="box"></div> <div id="fiv" ...

What could be the reason for the Mongoose findAll function causing a 500 error to occur?

My model / Schema has a working create method, but the "all" method is causing a 500 error. var mongoose = require('mongoose'); var Schema = mongoose.Schema; var DiSchema = new mongoose.Schema({ name: { type: String, lowercase: true , require ...

Is there a way for me to redirect back to the original path?

Whenever I utilize <Redirect to="<same_path>" />, a warning pops up: Warning: You tried to redirect to the same route you're currently on: "<path>". In one of my Components, I trigger another Component that prompts for either submis ...

GridView and UpdatePanel - preserving the same perspective

Assistance needed for implementing an UpdatePanel. Here is the grid structure: <asp:UpdatePanel ID="UpdatePanel1" runat="server" EnableViewState="false" UpdateMode="Conditional"> <Triggers> <asp:AsyncPostBackTrigger C ...

Unable to align span vertically using font-style "Luckiest Guy" in CSS

I have encountered an issue with vertically centering a span using the font-style "Luckiest Guy". https://i.sstatic.net/Lz8o3.png I attempted to use display: flex;align-items: center; on the span, but it did not work. App.vue <template> <div ...

Tips for using the useState hook to modify an array by its index?

I am working on a select component that needs to update values in an array of objects based on the index. Utilizing the hook as follows: const [areas, setAreas] = useState(product.areas); This is how the "areas" array looks: [ 0: {de: "Getraenke", en: ...

A unique Javascript feature that switches the text on various buttons

As someone who is relatively new to Javascript and web development, I am currently working on a project that involves creating multiple text areas for users to input and save text. Each text area is accompanied by a button with a unique ID that functions a ...

What is the reason behind the perpetual hiding of the button?

<div class="app__land-bottom" v-if="isVisible"> <a href="#projects"> <img ref="arrowRef" id="arrow" src="./../assets/down.png" alt srcset /> </a> </div> When ...

Mastering the placement of lights in ThreeJS

Struggling for nearly half an hour now, attempting to place a pointlight at the base of my model, but achieving dismal outcomes. Not sure of the dimensions of my model, and consistently failing to accurately pinpoint the light within the scene. Thought ab ...

Can Node.js Utilize AJAX, and if So, How?

Coming from a background in browser-based JavaScript, I am looking to dive into learning about node.js. From my current understanding, node.js utilizes the V8 engine as its foundation and offers server-side JavaScript capabilities along with pre-installed ...

React: Encountered an expression in JSX where an assignment or function call was expected

Trying to build a left-hand menu for my test application using react. Encountering a compilation error in the JSX of one of my classes. Is it because HTML elements cannot be placed within {} scripts in JSX? If so, how do I fix this? ./src/components/Left ...

Utilize AngularJS to retrieve and interact with the JSON data stored in a local file once it has

Please do not mark this as a duplicate since I have not found a solution yet. Any help would be appreciated. I have a file called category.json located next to my index.html file, containing the following JSON data: [{"name":"veg"},{"name","non-veg"}] W ...

Incorporate a Google Chart link by integrating it with a select handler

I'm facing an issue while trying to open a link in a Google line chart using the selection handler. The chart stops rendering, and as a newcomer to javascript, I'm unsure why. This is how the code is integrated into my HTML: <pre><code ...