Devvit Blocks | Component button does not show caution appearance type correctly
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- frontend
Research direction
Start with the Devvit Blocks button implementation and trace how the appearance="caution" example from the linked button documentation is compiled to CSS classes. Compare the generated button-secondary class with the existing button-caution CSS. Done means caution buttons render yellow while secondary buttons retain their dark grey appearance.
Written by the indexing model from the issue text.
Description
Issue
Using the Block component shows up the same as i.e. a dark grey color rather than yellow
Example Devvit Code
<button appearance="caution" onPress={() => someAction('here') }>
however, as per the documentation here: Devvit docs the style should be yellow
Expected Resolution
This appears to happen since the css is compiled to class button-secondary rather than button-caution. Please correct the compilation, since the caution class does appear to be present in the css, maybe the build process incorrectly compiles to secondary instead.
Hoping for a quick resolution. Thanks!
- Dominant language
- TypeScript
- Stars
- 210
- Forks
- 88
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from reddit/devvit
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 5/5 Over a week Newbie friendliness 42/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
area:tools bug good first issue help wanted priority:P2
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
TaewoooPark/Motifcode#14 ·
-
bug 🐞
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
[Bounty proposal] fix(web): memory insights count an evening memory on the next day ($25 proposed) Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
BasedHardware/omi#15320 ·
-
Difficulty 2/5 Half a day Newbie friendliness 78/100
vercel/vercel-plugin#199 ·