Comments (4)
Wow, I didn't realize that. I'll close this now. Thanks @Pickra!
from copy-code-block.
Hey @fatmali, so glad you like CCB!
I'm happy to help, but I need more information...
- can you show me how you're using CCB? a screenshot or a code block
- are you using plain CSS, CSS modules, a css in js solution or something else?
- are you using CCB in storybook?
- what version?
- storybook html, storybook react, other?
- ignore if using storybook, are you using CCB in...
- plain JS?
- react?
- other?
- ignore if using storybook, what build tool are you using...
- webpack?
- rollup?
- other?
from copy-code-block.
@Pickra :
-
Code Block - https://github.com/openmrs/openmrs-esm-styleguide/blob/master/src/story-helpers.js#L10. That function acts as a wrapper for all our stories.
-
I'm using plain css
-
I'm using CCB in
@storybook/html
version 5.2.1 where I'm trying to document JSX syntax
from copy-code-block.
Thanks @fatmali
It looks like you have 2 issues:
- CSS class names not showing up correctly
- CCB's displayed code attribute names getting lowercased
CSS class names not showing up correctly
I'm not seeing this issue based on your buttons-and-links html and your hosted storybook page, after clicking the jsx
tab.
CCB's displayed code attribute names getting lowercased
TLDR; it's not CCB, it's the DOMParser
Verify it's not CCB...
- cloning the repo
- run
npm i
in the terminal- requires node 6.0.0 or higher, npm 3.8.6 or higher
- update the html example
class
attribute toclassName
- run
npm start
in the terminal - navigate to
http://localhost:8080/
in the browser
Verify the DOMParser
is lowercasing attribute names in your browser console...
from copy-code-block.
Related Issues (4)
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 copy-code-block.