Remove role color highlighting from custom css (#33493)
This commit is contained in:
parent
bbe9dcfade
commit
7ad44e22ed
5 changed files with 2 additions and 46 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue