mjackson / mjackson/react-style

Default to using inline styles

Open
#2 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
21
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Seems like the default for styling should be to put the styles on the element itself instead of in a stylesheet, so you can do stuff like animation. However, things that can't be done inline (e.g. :hover) need to be done in a stylesheet.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by locating the project's styling implementation and examples, then determine how the current default chooses between inline styles and stylesheets. Done means styles default to the element when possible, while selectors such as :hover still use a stylesheet, with the behavior covered by the project's existing tests or examples.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.