You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@answer.apache.org by "newhinton (via GitHub)" <gi...@apache.org> on 2025/07/18 13:22:51 UTC

[I] Dark Mode: Wrong background color for code block [answer]

newhinton opened a new issue, #1368:
URL: https://github.com/apache/answer/issues/1368

   ## Describe the bug
   Code block uses wrong background color
   <img width="1107" height="115" alt="Image" src="https://github.com/user-attachments/assets/a16b2eaa-fac3-4115-9e9e-2854426287c6" />
   
   ### To Reproduce
   Add code block to question while in dark mode
   
   ### Expected behavior
   
   Proper Contrast
   
   ### Fix:
   I used the following custom css to use a better color. In the default, it used a hardcoded light-grey.
   
   ```
   
   .fmt pre {
     background-color: var(--bs-secondary-bg);
   }
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org
For additional commands, e-mail: issues-help@answer.apache.org


Re: [I] Dark Mode: Wrong background color for code block [answer]

Posted by "Dinesht04 (via GitHub)" <gi...@apache.org>.
Dinesht04 commented on issue #1368:
URL: https://github.com/apache/answer/issues/1368#issuecomment-3361180984

   hey @fenbox, Can I be assigned to fix this bug? I have implemented the fix in ui/src/index.scss and checked the that it works for answers as well as questions. I have changed gray-100 to secondary-bg 
   
   <img width="1308" height="832" alt="Image" src="https://github.com/user-attachments/assets/3ef75927-40eb-46dc-bbea-81e9d7138bf1" />  
   
   <img width="1308" height="832" alt="Image" src="https://github.com/user-attachments/assets/9679111b-865d-4d35-9f6a-edca5e372c4f" />


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org
For additional commands, e-mail: issues-help@answer.apache.org


Re: [I] Dark Mode: Wrong background color for code block [answer]

Posted by "fenbox (via GitHub)" <gi...@apache.org>.
fenbox closed issue #1368: Dark Mode: Wrong background color for code block
URL: https://github.com/apache/answer/issues/1368


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org
For additional commands, e-mail: issues-help@answer.apache.org