`theme` attribute does not update dynamically
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- react, typescript
- Domain
- frontend
Research direction
Start with the theme prop handling for the Button, TextField, and ComboBox components, then reproduce the state change shown in the example. Done means changing the state updates the theme attribute and the component's visual theme after the initial render.
Written by the indexing model from the issue text.
Description
The theme attribute on Vaadin React components (e.g., Button, TextField, ComboBox) does not update dynamically when the theme prop is changed after the initial render.
Steps to Reproduce:
- Render a Vaadin React component (e.g., Button) with a theme prop bound to a state variable.
- Update the state variable that controls the theme prop.
- Observe that the component's visual theme does not change, the attribute does not update.
Example:
export default function Repro() {
const [theme, setTheme] = useState('');
return (
<>
<Button theme={theme}>Foo</Button>
<TextField theme={theme} />
<ComboBox theme={theme}></ComboBox>
<input type="checkbox" onChange={(e) => setTheme(e.target.checked ? 'small' : '')} />
</>
);
}
- Dominant language
- TypeScript
- Stars
- 18
- Forks
- 4
- Avg merge
- 52m
- Merged PRs (30d)
- 7
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 vaadin/react-components
-
bug Impact: Low Severity: Major
Difficulty 4/5 3-5 days Newbie friendliness 48/100
vaadin/react-components#398 · 1 comment ·
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 45/100
vaadin/react-components#338 · 1 reaction ·
-
hilla react
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
vaadin/react-components#337 · 8 comments ·
-
bug Impact: Low Severity: Major
Difficulty 3/5 1-2 days Newbie friendliness 50/100
vaadin/react-components#323 ·
-
bug Impact: Low Severity: Minor
Difficulty 4/5 3-5 days Newbie friendliness 35/100
vaadin/react-components#315 · 1 comment ·
All issues in vaadin/react-components
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
danielmiessler/LifeOS#2218 ·