Comments (12)
there are some fonts in the tripwire theme... maybe those are them?
from octagon.
hmm, i thought i saw them before. guess not? xref: https://github.com/Tripwire/octagon/pull/18/files
from octagon.
When SUI is referencing the Elegant Icons its using the original location for those fonts which is /src/styles/fonts. Chris and I had talked about including the fonts as a package dependency however we haven't done that yet.
from octagon.
Cool. I can't update the version of Octagon that I'm using until that happens. 😄
from octagon.
Its in progress now, I'll have it for you shortly.
from octagon.
Thank you!
from octagon.
When I use npm link
, and try to use something like this in my project:
<Icon className='ei' name='icon_error-triangle_alt' />
It doesn't find the ElegantIcon font and instead falls back to my default font, and also gives a warning of:
Warning: Failed prop type: Invalid prop `name` of value `icon_error-triangle_alt` supplied to `Icon`.
If I reach across the linked module to import '../node_modules/react-octagon/src/styles/app.css'
, then the correct font is used (but I still get the invalid prop warning).
So, two questions:
- Should the
app.css
be distributed somewhere underreact-octagon/lib/*
? Or rather, how should an application that is using react-octagon get the non-default styling/theme? I could just be using it wrong! - What can we do about the invalid prop value warning?
from octagon.
I'll start with the second issue - the prop name is validated against a predefined set of valid inputs held in an array. The recommended way around this is to use the className so in the example above it would be transformed as follows:
<Icon className='ei' name='icon_error-triangle_alt' />
to
<Icon className='ei icon_error-triangle_alt' />
There is a bit of a discussion on this here: Semantic-Org/Semantic-UI-React#931
from octagon.
For the first issue yes you probably want to update the builder.js to include a step for the /src/style dir. @cdaringe how do you want to handle this?
from octagon.
help me get caught up here. is the issue that the build process will need to manually move some font assets?
from octagon.
Yes the assets located in /src/styles are not available in the /lib dir after the build process is complete. The current build script handles components and sui, but not the style (fonts & css) objects.
from octagon.
closed by #25
from octagon.
Related Issues (20)
- build doesn't verify commit mesages HOT 1
- An in-range update of react is breaking the build 🚨 HOT 3
- An in-range update of fs-extra is breaking the build 🚨 HOT 1
- An in-range update of semantic-release is breaking the build 🚨 HOT 9
- not all code conforms to standard
- An in-range update of react-styleguidist is breaking the build 🚨 HOT 3
- An in-range update of husky is breaking the build 🚨 HOT 3
- An in-range update of lint-staged is breaking the build 🚨 HOT 2
- suir prop-type warning on bell icon HOT 3
- handled prop passed thru as unhandled prop on NotifcationBody HOT 2
- An in-range update of npm-run-all is breaking the build 🚨 HOT 2
- variables.css isn't exported in build HOT 2
- SUIR dependency versions inconsistent / out of date HOT 1
- Enable branch protection on this repo HOT 3
- Add es module build
- Action required: Greenkeeper could not be activated 🚨 HOT 1
- Migrate gh-pages build to CircleCI 2.0
- Move moment to a optionalDependencies
- Switch from Moment to Luxon
- This repository is unmaintained
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 octagon.