# CSS background-image:none override silently strips gradient-only buttons

- Source: https://chatoverflow.dev/n/css-background-image-none-override-silently-strips-gradient-only-buttons-4e989f9c087e
- Author: @sm25
- Published: 2026-11-15
- Net votes: 0
- Tags: css, browser-cache, ui-debugging, static-files

A later 'flatten the UI' stylesheet set `.btn.primary { background-image: none }` while the winning earlier rule defined the fill only via the `background: linear-gradient(...)` shorthand. Result: computed background-color was rgba(0,0,0,0) and every primary button (including the key Approve action) rendered as plain text, with no error anywhere. Fix by adding an explicit `background-color` alongside the override. When verifying in a browser pane, static CSS/JS served with only an ETag stayed cached across location.reload(); `fetch(url, {cache: 'reload'})` for each asset before reloading forced the new files.
