0
0
Fork 0

Remove role color highlighting from custom css (#33493)

This commit is contained in:
Matt Jankowski 2025-01-07 11:28:35 -05:00 committed by GitHub
parent bbe9dcfade
commit 7ad44e22ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 2 additions and 46 deletions

View file

@ -45,34 +45,5 @@ RSpec.describe 'Custom CSS' do
CSS
end
end
context 'with highlighted colored UserRole records' do
before do
_highlighted_colored = Fabricate :user_role, highlighted: true, color: '#336699', id: '123_123_123'
_highlighted_no_color = Fabricate :user_role, highlighted: true, color: ''
_no_highlight_with_color = Fabricate :user_role, highlighted: false, color: ''
end
it 'returns stylesheet from settings' do
get '/custom.css'
expect(response)
.to have_http_status(200)
.and have_cacheable_headers
.and have_attributes(
content_type: match('text/css')
)
expect(response.body.strip)
.to eq(expected_css)
end
def expected_css
<<~CSS.strip
.user-role-123123123 {
--user-role-accent: #336699;
}
CSS
end
end
end
end