Remove the blue border at the bottom of the active tab in the ant design tabs by deleting the

I recently incorporated ant-design-react into a new project of mine. The challenge I am facing involves the "tabs" component that showcases various products. However, I have noticed that the active "tab" displays a blue border-bottom or some other style element that is unwanted. Despite my efforts, I have been unable to locate which specific element is responsible for this design feature, particularly the ::before and ::after elements. How can I effectively remove this styling from the active tab?

https://i.sstatic.net/geGof.png

Answer №1

The current tab's bar is styled with the ant-tabs-ink-bar and ant-tabs-ink-bar-animated classes. To eliminate it, simply modify the background-color property of the class in a CSS file and include it. (Ensure that it is imported after antd/dist/antd.css)

.ant-tabs-ink-bar {
  background-color: transparent;
}

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

Customizing Body Color in CKEditor for Dynamic Designs

I am facing an issue with CKEditor that I am hoping to find a solution for. My scenario involves using a jQuery color picker to set the background color of a DIV element, which is then edited by the user in CKEditor. However, I have observed that it is not ...

Error message in React-router: Cannot read property 'func' of undefined, resulting in an Uncaught TypeError

When attempting to launch my react application, I encountered an error in the browser console: Uncaught TypeError: Cannot read property 'func' of undefined at Object../node_modules/react-router/lib/InternalPropTypes.js (InternalPropTypes.js: ...

The URL you are trying to access cannot be found on this server. The issue seems to be with the cpanel while hosting the

Hello fellow Developers, I recently added a homepage to my package.json file and went through the process of building, zipping, uploading, and unzipping it in the public_html folder on cpanel. After removing all files except those in the build folder, my ...

Transferring state data using the useState hook between two functional components

I have a project with two function components that use useState in separate files. My goal is to display the URL on my FaceRecognition component when fetchSuccess is set to true. const ImageLinkForm = () => { const [url, setUrl] = useState(""); co ...

Struggling with Node JS Module Dysfunction: Module MIA

I am facing an issue while trying to utilize a npmjs module called systeminformation. The documentation instructs to use it as shown below, but I encounter an error stating "module not found." Here is the code from the documentation: const si = require(&a ...

Attempting to dynamically update the image source from an array when a click event occurs in a React component

Has anyone successfully implemented a function in react.js to change the image source based on the direction of an arrow click? For instance, I have an array set up where clicking the right arrow should move to the next image and clicking the left arrow s ...

Display a collection of React components using the render method

Got a quick question - anyone familiar with rendering an array of components for easier developer manipulation of a particular component, like in a dashboard? Here's the Component List file: import React from 'react'; export default [ ...

Is there a way to align these elements horizontally on the same line?

I am managing a website at To better illustrate my request, I have attached an image showing what I want to accomplish. I would like the elements on the site to align seamlessly with the "in stock" notification. https://i.sstatic.net/3qipq.jpg This is t ...

Adjusting the position of navbar links to the right in Bootstrap 4 using a toggle button

Attempting to shift the links from the left of the navbar to the right side proved to be challenging. I tried floating it to the right, using position:relative; right: 200px;, and padding-right: -200px;, but none of it worked. If anyone has any other sug ...

The size of the cursor varies depending on the line it's placed on

I have a content editable div where three lines are separated by BR tags. When I click on the second line, the cursor becomes bigger than that in the first line. .content { line-height: 35px; } <div class="content" contenteditable="true"> ...

Ensure tables are vertically centered when printing an HTML page

I need to export two tables, each measuring 7cm×15cm, to a PDF file with A4 portrait paper size using the browser's "Save to PDF" option in the print tool. My goal is to center these two tables vertically on the A4 paper. If that proves difficult, I ...

How do I remove the red border on the MUI datepicker that is currently showing?

I'm currently working with the MUI datepicker, and I've noticed that before entering any value, a red border appears. However, after selecting a date, it disappears. You can see the issue here const [selectDate, setSelectDate] = useState(" ...

Expanding div contents not adapting to full width due to lack of flex grow property

My goal is to make the input elements fill the entire width they are allotted, but for some reason, they remain at their default size when initially rendered. Check out the CodeSandbox I found a workaround by adding the following: . . . <input style={ ...

Preventing attribute or tag cloning in Jquery: What you need to know

I'm having some trouble with JQuery. I want to clone an attribute or tag that is dragged from one div1 to another div2, which is working fine. But the issue arises when I drag or move the position of an existing tag on div2, then the cloning process s ...

Switching a class component to a functional component with react hooks (specifically useRef) - tips for preventing the dreaded "undefined" error

I have a code snippet that works as a class component and I'm trying to convert it into a functional component using the react-rewards library. Class component (working): import { Checkbox } from "@chakra-ui/react"; import React, { Compone ...

ReactJs: The input value remains stagnant due to the utilization of Array.map

Here is the content within the table body: <tbody> {this.state.composantInformation.map(composantInfo => { return ( <tr key={composantInfo.id.toString()}> <td>{composantInfo.nom_composant}</td> <td& ...

What is the best way to vertically center a row?

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8> <title>Unique Title</title> <link rel="stylesheet" href="custom-reboot.min.css"> <link rel="stylesheet" href="custom-style.min.css"&g ...

Could it be a path problem if you're directed to the incorrect slug without any errors popping up?

I have two slugs. I'm encountering an issue where I am trying to access the second slug [product] but instead, it keeps redirecting me to the first one [slug]. The slugs are stored in separate folders and there aren't any error messages being dis ...

What is the best way to avoid passing a value to a component in nextjs?

I'm trying to make this component static and reusable across different pages without passing a parameter when calling it. Is there a way to achieve this while following the official documentation? component: import { GetStaticProps, InferGetServerSid ...

I'm currently working on setting up a gallery on the lower part of my webpage, but for some reason, the lightbox2 images are not aligning next to each other in rows. Can anyone

Struggling to align images in a gallery at the bottom of my webpage. They keep appearing on separate lines instead of next to each other. HTML: <section id="galleries"> <h2>Galleries</h2> <article class="img- ...