When I use <Button onClick={() => {}} text="ABC" icon="chevron-double-up" appearance='primary'/>
, the button shows up without an icon. When I use add-circle
from the example in the documentation, a fully white circle shows up. Browser development tools (on Edge) reveal that the primary color uses currentColor (which is white on a primary button) and the secondary color tries to use an undefined variable and falls back to white, resulting in a fully white circle.
Is there anything I can do to make the missing icon show up and what about the bad coloring?
package.json:
{
"name": "forge-ui-starter",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"private": true,
"scripts": {
"lint": "./node_modules/.bin/eslint src/**/* || npm run --silent hook-errors",
"hook-errors": "echo '\\x1b[31mThe build failed because a Forge UI hook is being used incorrectly. Forge UI hooks follow the same rules as React Hooks but have their own API definitions. See the Forge documentation for details on how to use Forge UI hooks.\n' && exit 1"
},
"devDependencies": {
"eslint": "^7.5.0",
"eslint-plugin-react-hooks": "^2.1.2"
},
"dependencies": {
"@forge/api": "^2.6.0",
"@forge/ui": "^1.1.0"
}
}