Comments (3)
Because you have assigned variable 'small' twice.
Try to use 'smallA' and 'smallB', or something else to make a distinction.
from css-modules.
@saintwinkle What? This breaks all the concepts of the encapsulation/modules. small
is not a variable, but key (read css class) in both border.css
and borderRadius.css
. Having smallBorder
and smallRadius
in css files mean that then there is no sense to use CSS Modules at all (since class names are not unique).
If this really happens, then it's just a bug. Bad bug, but still simply a bug (and not conceptual feature).
from css-modules.
That's my fault. Try to delete this lines: https://github.com/webpack/css-loader/blob/c2f9150caba481e7506265860e0f81216ee11e41/lib/processCss.js#L146-L148
from css-modules.
Related Issues (20)
- Issue with duplicate class hashes
- Does the order of implementation of a class matter when there are two classes with the same parameters? HOT 1
- typo in https://github.com/css-modules/css-modules/blob/master/docs/local-scope.md HOT 1
- RFC: Support for hashing more types of identifiers HOT 8
- Another rant about not being able to import a class from another file
- not so good logo HOT 1
- Compose classes with attribute selector
- Best way to override styling found in module a based on module b. HOT 1
- How pseudo class :global should work๏ผ HOT 2
- ID vs Class
- Rules nesting HOT 2
- Understanding "composes" peer classes HOT 2
- It should throw an error if you use a class that doesn't exist
- Proposal: Handover Official Lead of CSS Modules to Devon Govett HOT 1
- Define how CSS modules interacts with `@layer` HOT 3
- bug: composes keyword does not work inside nested class
- how to style child Component when child and parent both use css.module? HOT 1
- Late loading of CSS Module creating layout shift - Next.js 14
- Is there a way to support native nesting selector `& &`? HOT 3
- lers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from css-modules.