Affected Apps / Packages
Portfolio (apps/portfolio)
Description
When selecting text on the portfolio website, the custom selection background color and text color do not show up. It defaults to the browser's default highlight color.
Metadata
- Suggested Branch: fix/portfolio-selection-style
- Suggested PR Title: [Fix] [Portfolio]: Resolve text selection styling in globals.css
Steps to Reproduce
- Go to any public portfolio page.
- Click and drag to select any text.
- Observe that the text highlights in the browser default style instead of the custom blue/white accent colors.
Expected Behavior
The selected text background should be var(--color-accent) (blue) and the text color should be var(--color-accent-ink) (white).
Environment Information
- OS: All (Windows, macOS, Linux)
- Browser: Chrome, Safari, Firefox
Relevant Logs
No response
Proposed Fix / Suggestions
Modify apps/portfolio/app/globals.css to add !important to the selection colors and add the universal selector:
::selection {
background: var(--color-accent) !important;
color: var(--color-accent-ink) !important;
}
*::selection {
background: var(--color-accent) !important;
color: var(--color-accent-ink) !important;
}
Affected Apps / Packages
Portfolio (apps/portfolio)
Description
When selecting text on the portfolio website, the custom selection background color and text color do not show up. It defaults to the browser's default highlight color.
Metadata
Steps to Reproduce
Expected Behavior
The selected text background should be
var(--color-accent)(blue) and the text color should bevar(--color-accent-ink)(white).Environment Information
Relevant Logs
No response
Proposed Fix / Suggestions
Modify
apps/portfolio/app/globals.cssto add!importantto the selection colors and add the universal selector: