Minor css typo in switch-handle

Open Beginner friendly
#23 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
75/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
css, react
Domain
frontend

Research direction

Inspect src/bootstrap-switch-button-react.js near line 114, starting with the span rendering shown in the issue. Verify the rendered switch-handle class separates btn-light from the size-specific class, and confirm the generated HTML no longer contains btn-lightbtn-sm.

Written by the indexing model from the issue text.

Description

The css class rendered for the switch-handle span has a typo in it:

class="switch-handle btn btn-lightbtn-sm"

This is due to a typo in src/bootstrap-switch-button-react.js near line 114 (in master f206c5bf5b2):

<span className={'switch-handle btn btn-light' + (this.state.size ? 'btn-' + this.state.size : '')} />

I will submit a PR.

Dominant language
CSS
Stars
19
Forks
19
PR merge metrics
No merged PRs in 30d

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.

More from gitbrent/bootstrap-switch-button-react

All issues in gitbrent/bootstrap-switch-button-react

Similar issues

More Web Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.