Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/App.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
const Button = () => <button type="button">button</button>

Check failure on line 1 in src/components/App.jsx

View workflow job for this annotation

GitHub Actions / CI

eslint(no-unused-vars)

Variable 'Button' is declared but never used. Unused variables should start with a '_'.
Copy link

Copilot AI Mar 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Button is declared but never used/exported, which will trigger the repo's no-unused-vars lint error. Export it (e.g., as default or named export) or rename to/define an exported App component if this file is meant to be the app entry component.

Suggested change
const Button = () => <button type="button">button</button>
export const Button = () => <button type="button">button</button>

Copilot uses AI. Check for mistakes.
Copy link

Copilot AI Mar 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The styles being added target .counter-button, but this component renders a plain <button> without that class/data attributes, so none of src/styles/app.css will apply. Either add the expected class/attributes to the button (e.g. className="counter-button") or update the CSS selectors to match the rendered markup.

Suggested change
const Button = () => <button type="button">button</button>
const Button = () => <button type="button" className="counter-button">button</button>

Copilot uses AI. Check for mistakes.
29 changes: 29 additions & 0 deletions src/styles/app.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
.counter-button {
margin: 0;
padding: 0.75rem 1rem;
Comment on lines +1 to +3
Copy link

Copilot AI Mar 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This stylesheet isn't referenced anywhere (it isn't imported from src/styles.css and there are no JS/CSS imports of src/styles/app.css), so adding it won't change the app's styling. If these styles are intended to take effect in this repo, add an @import for it in src/styles.css (respecting the existing import order) or otherwise wire it into the build.

Copilot uses AI. Check for mistakes.
border: 1px solid #3558b8;
border-radius: 0.5rem;
background: #e9efff;
color: #1a2a52;
font-weight: 600;
cursor: pointer;
transition: background-color 120ms ease;
}

.counter-button:hover {
background: #dce6ff;
}

.counter-button[data-active='true'] {
background: #3558b8;
color: #fff;
}

.counter-button.is-even {
border-style: dashed;
}

.counter-button:focus-visible {
outline: 2px solid #6a84d8;
outline-offset: 2px;
}
Loading