Skip to content

πŸ› [Bug]: Fibonacci Input Field Text Invisible in Dark Mode + Input Validation IssuesΒ #522

@snehanair-486

Description

@snehanair-486

Description
Two related bugs found in the Fibonacci Series project:

Bug 1 β€” Dark Mode Text Visibility
In dark mode, the input field is completely invisible β€” both the default value (10) and any text the user types cannot be seen. The field appears empty even when it contains values.

Steps to reproduce:

  1. Switch to dark mode
  2. Click the Fibonacci Series project card
  3. Notice the input field looks empty β€” the default value 10 is there but invisible
  4. Try typing a number like 6 β€” nothing appears visually
  5. Click the spinner arrows (up/down) on the input field β€” the number briefly becomes visible
  6. But now the value is wrong e.g. 1064 because 10 was silently there from the start, then you typed 64 on top of it

Bug 2 β€” Input Validation Not Working
The input field accepts invalid values and handles them incorrectly instead of showing an error message.

Steps to reproduce:

  1. Type -1 β†’ the project silently outputs 0 with no error or explanation
  2. Type 000 β†’ the project treats it as valid and generates the first 10 Fibonacci numbers as if the input was 10, with no feedback to the user that their input was corrected or invalid

Expected Behaviour

  • Input field text should be clearly visible in both light and dark mode
  • Negative numbers should show a clear error message e.g. "Please enter a positive number"
  • Zero or invalid inputs like 000 should show a clear error message e.g. "Please enter a number greater than 0"
  • No silent corrections β€” if the input is wrong, tell the user explicitly

hi @steam-bell-92, I'd love to work on this! Please assign it to me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions