layer5 icon indicating copy to clipboard operation
layer5 copied to clipboard

[Partners] Fix invalid CSS property value float: center in partner.style.js

Open ayushbuilds-code opened this issue 5 days ago • 1 comments

Description

In src/sections/Partners/partner.style.js, line 157 sets float: center; inside the .btn rule:

.btn {
    font-size: inherit;
    min-width: 240px;
    max-width: 300px;
    width: 100%;
    float: center;
}

center is not a valid CSS value for the float property (only left, right, none, inline-start, and inline-end are valid), so browsers ignore this declaration.

Expected Behavior

Remove the invalid float: center; declaration (or replace it with float: none; / margin: 0 auto; if centering is intended, noting that .btn-section already uses display: flex; margin: auto; text-align: center;).

Steps for Newcomers

  1. Open src/sections/Partners/partner.style.js and go to line 157.
  2. Replace or remove float: center; inside .btn.
  3. Run npx eslint src/sections/Partners/partner.style.js and npm run test:unit to verify.
  4. Keep the diff strictly scoped to this line with no unrelated formatting changes.

Affected File

  • src/sections/Partners/partner.style.js

ayushbuilds-code avatar Nov 30 '26 05:11 ayushbuilds-code

Hey @ayushbuilds-code, I'd like to work on this issue. I'll inspect the .btn and .btn-section styles, remove the invalid float: center; declaration, and verify that the existing alignment works correctly. I'll keep the changes minimal and run the suggested checks

Could you please assign this issue to me? Thank you!

sarah-26-bit avatar Nov 30 '26 05:11 sarah-26-bit