Skip to main content

All Questions

Tagged with
0 votes
0 answers
30 views

CSS animations just stopped working on React

My css animations just stopped working and i have no idea why, this is a react project i'm working on to learn more about the framework, if someone knows why this happens it would help a lot, thanks. ...
ericericeri_'s user avatar
0 votes
0 answers
13 views

How to apply style to nested custom Mui-classes in a separate .module.scss file (using react.js)

What is currently possible: Giving style to whole Mui component <SimpleTreeView sx={{ backgroundColor: '#000000' }} </SimpleTreeView> Segregate styling to a separate class in .module....
Aman Jain's user avatar
-1 votes
2 answers
31 views

Icons in React not centered vertically

I have this simple template: <div className="wrapper"> <div className="block one"> <GoSearch /> 15 </div> <div ...
Dani's user avatar
  • 3,979
0 votes
2 answers
61 views

react-datepicker anchorDirection="bottom" not working [closed]

I am using react-datepicker to display a time picker component but I want the time list to be displayed in the bottom of input component but it's currently showing on top of the input field. code : &...
Alpharis's user avatar
0 votes
0 answers
27 views

When i try to compile code by running npm run dev i am receiving error 1 ERROR in child compilations

Receiving below error when trying to run "npm run dev" for compiling 1 WARNING in child compilations(Use 'stats.children: true' resp. '--stats-children' for more details) ERROR in ./scss/...
Sudhan's user avatar
  • 11
0 votes
0 answers
68 views

Cannot get Bulma color overrides to work after Bulma upgrade to 1.0.1

I have a create-react-app in which I am trying to upgrade bulma from version 0.9.4 to 1.0.1. So far, everything seems to have worked, with exception of the new dart method of overriding the colors. I ...
martijn's user avatar
  • 1,449
-1 votes
1 answer
36 views

React / sass overflow attribute is not working on navbar

Here is the revised post for Stack Overflow with the formatting and code adjusted: Title: Navbar Sliding Off-Screen Increases Left Margin Despite overflow: hidden I'm trying to make my navbar slide ...
Juan Carlos Muñoz Pico's user avatar
0 votes
2 answers
31 views

Toggle bug, moving diagonally instead of straight

I'm working on a toggle, this is my code: import style from "./Toggle.module.scss"; export default function Toggle() { return ( <> <input type="...
Kevin's user avatar
  • 928
0 votes
1 answer
40 views

How to vertically position an element within a relative parent [duplicate]

I'm working on a toggle switch, I want to position the toggle knob perfectly vertical within the switch. Here's how I tried to achieve this: import style from "./Toggle.module.scss"; export ...
Kevin's user avatar
  • 928
0 votes
1 answer
19 views

How do I ensure the html/body/root height grows to contain dynamically generated content?

I have some content that is dynamically generated from a database (think a web-shop of products) and I cant seem to get the root height to contain it all. Essentially the root grows up until the ...
spencer's user avatar
  • 118
0 votes
0 answers
26 views

Need to include functionality for arrows on a news section that has different displays on different screen sizes

I have a News section that maps through an array of data. Currently I only have 3 news items in my array. On larger screens, 3 news Items show meaning all my data is showed. However, on MobileScreens, ...
Adrian Samtani's user avatar
3 votes
4 answers
255 views

How to override a style of a library component in React app css?

EDIT: Here's stackblitz for example app EDIT 2: See my answer for simple solution I have a React component that shows an alert component with the scss. export function MyComponent() { return ( &...
char m's user avatar
  • 8,124
2 votes
2 answers
804 views

vitejs treat all .scss files as css modules

I am working with a legacy package in a monorepo and am including in the optimizeDeps array - is it possible to tell Vite to treat all .scss files it sees as CSS Modules files? Originally asked in ...
JaKXz's user avatar
  • 1,641
0 votes
2 answers
69 views

How to add styling for focus shifting from one element to another element

I'm using spatialNavigation for focusing the element as below code in index.html <script src="https://cdn.jsdelivr.net/npm/[email protected]/spatial_navigation.min.js"></...
Dharshan PLUV's user avatar
0 votes
0 answers
34 views

CSS classes get overridden by a different class despite using !important keyword

My goal is to resize modal form. Despite defining classes and setting them, they get overridden by another class. tsx file : import styles from '../../../../../../../kit/components/modals/Modal/Modal....
Guga Todua's user avatar

15 30 50 per page
1
2 3 4 5
79