Can the border of the Input.TextArea be concealed when it is in focus?

I've implemented an Input.TextArea element to capture user input messages, and the corresponding HTML structure is as follows:

<div className="input-box">
    <Input.TextArea
        id="talkInput"
        rows={1}
        value={inputValue}
        ref={inputRef}
        onChange={handleChatInputChange}
        onKeyPress={handleEnterKey}
        placeholder="Type a message and press Enter to send" />
    <Button icon={<SendOutlined style={{ 
        display: 'flex', 
        alignItems: 'center', 
        transform: 'rotate(-45deg)',
        justifyContent: 'center' }}/>}
        loading={loadings}
        onClick={handleSend}
    ></Button>
</div>

Whenever I input text, the Input.TextArea displays a light blue border. Is there any way to remove this border? I've tried the following CSS styles:

textarea:focus {
  outline: none;
  border: none;
}

and also attempted to set the border color in this manner:

textarea:focus {
  outline: none;
  border: none;
  border: 0px solid white;
}

Unfortunately, neither of these methods has worked for me. What steps should I take to prevent the Input.TextArea from displaying the light blue border?

Answer №1

Follow this format:

textarea {
  border: none;
}

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

A guide to updating the image src with a click using CSS exclusively, without JavaScript intervention

I am looking to update the image source when clicking on it using only CSS, something along the lines of: img:active { } ...

Responsive header image centered on the page

Currently, I am working on coding a header image that resembles the one showcased on this particular page: . Kindly pay attention to how the image of the guy behaves when the page is resized. It remains centralized, maintains its position, and does not get ...

Why is my CSS media query failing to increase font size?

I can't seem to get the "media query" function to work properly. I've tried multiple times and searched for a solution without any luck. Below is the code snippet where I'm attempting to increase the font size from 44px to 70px on small devi ...

Vertical Image Alignment in Bootstrap 3

Looking for some help with a basic HTML structure here. I have a single row divided into two columns, each containing an image of the same size. What I need is to center one image both horizontally and vertically in each column. <div class="containe ...

Problem encountered during the transfer of JSON data from PHP to JavaScript

Currently, I am working on a PHP file that extracts data from a database to display it on a chart using the Chart.js library. The chart is functioning properly, but I am facing an issue where I need to use the json_encode() function to pass the array value ...

ElegantFrameload - Displaying an HTML webpage

I want to implement a monetary conversion tool on my webpage using fancy box. However, I am facing issues with getting it to work. Here is the link to the page that is not functioning properly: The link at the bottom of the page should trigger the fancy b ...

Is there a way to resize SVG images without having to modify the underlying source code?

Within my Vue Single File Component, there is a prop labeled svg, which holds a string of SVG markup like <svg>...</svg>. What is the best way to render and resize this SVG content? ...

The menu bar fails to maintain its responsiveness once the breakpoint is reached

The issue I am facing is that the menu bar does not resize properly when the browser window size is less than 900px. This results in the bar being too wide, some content going off the screen, and a horizontal scrollbar appearing. I have been trying to tro ...

Issues with JavaScript causing slideshow to malfunction

I'm experiencing some issues with my image slider. It seems that during the initial loop, the slideshow keeps reverting back to 'image3'. However, after the first loop, everything appears to work correctly. I am looking for a solution to ens ...

Floating images of varying sizes using a combination of CSS, JavaScript, and jQuery

I am looking for a way to showcase images in a floating style, with the challenge being that there are two different image sizes, one larger than the other with the size equivalent to 4 of the smaller ones combined. Take a look at this visual example: I a ...

Scrollable Bootstrap navigation bar

I'm attempting to modify the Bootstrap navbar's behavior so that it utilizes a horizontal scroll instead of collapsing. While this works on mobile devices, I want it to function the same way on all devices using SASS: .navbar-nav { li { di ...

What are some common reasons why CSS and Bootstrap code can unexpectedly break?

I have been working on two tabs (tab-one, tab-two) where one is visible and the other is hidden. However, there has been an issue where the code breaks between the bottom of tab-one and the top of tab-two, causing some portion of tab-two to be occasionally ...

Is there a way to reset the yAxes count of a chart.js chart in Angular when changing tabs?

I am currently using chart.js within an Angular framework to visually display data. Is there any method available to reset the y-axis data when changing tabs? Take a look at this Stackblitz demo for reference. Upon initial loading of the page, the data ...

Material UI - Clear all designs from the slate

Is it possible to completely override all default material-ui styles and implement your own custom style guide for components? This would involve removing all material-ui styles and starting fresh with customized html skeletons. Creating a new theme with m ...

Leveraging font display functionality while incorporating a Typekit URL

Pagespeed is giving me a warning, Make sure text remains visible during webfont load I have been researching how to fix this problem and I found people suggesting to include the font-display: fallback argument in the font declaration block. However, I ...

Step-by-step guide on loading an external javascript file once a webpage is fully loaded, and incorporating a function from it

After the initial page load, I have a need to incorporate an external JavaScript file into an HTML file. This is necessary because a variable in this external JS file only updates after the HTML file has fully loaded. Additionally, I want to utilize the fu ...

Adjusting the background opacity of an image without impacting its borders

Is there a way to set the background with opacity without affecting the opacity of the border line? I have tried different solutions but none seem to work. <div class="selected"> <img src="../assets/img/image-product-1-thumbnail.j ...

Can ngFor be utilized to exhibit multiple component selector tags?

I have a question related to Angular 2. I am currently using ngFor to display {{data}} tags from a local JSON file and show the data on my page. However, I am curious if there is a way to render component selector tags that are stored in a JSON file and d ...

The hyperlink cannot be activated

I am encountering an issue with a web page that has a simple layout. The footer of the page contains a link, but it is unclickable. I attempted to set z-index: 1000000 for the footer element, however, this did not resolve the problem. I am unsure of what m ...

Is it feasible to place an image on top of a box?

Hello everyone, I have been trying to figure out how to achieve a specific layout in React. I am using MUI so there is no need for any hard-coded CSS. However, my attempts have not been successful so far. The layout I am aiming for consists of an image on ...