chore(colors): Updating Airbnb brand colors (#23619)

This commit is contained in:
John Bodley 2023-11-13 11:25:14 -08:00 committed by GitHub
parent 8d8e1bb637
commit 6d8424c104
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 19 additions and 27 deletions

View File

@ -515,7 +515,7 @@ describe('Dashboard edit', () => {
// label Anthony // label Anthony
cy.get('[data-test-chart-name="Trends"] .line .nv-legend-symbol') cy.get('[data-test-chart-name="Trends"] .line .nv-legend-symbol')
.eq(2) .eq(2)
.should('have.css', 'fill', 'rgb(0, 122, 135)'); .should('have.css', 'fill', 'rgb(244, 176, 42)');
// open main tab and nested tab // open main tab and nested tab
openTab(0, 0); openTab(0, 0);
@ -526,7 +526,7 @@ describe('Dashboard edit', () => {
'[data-test-chart-name="Top 10 California Names Timeseries"] .line .nv-legend-symbol', '[data-test-chart-name="Top 10 California Names Timeseries"] .line .nv-legend-symbol',
) )
.first() .first()
.should('have.css', 'fill', 'rgb(0, 122, 135)'); .should('have.css', 'fill', 'rgb(244, 176, 42)');
}); });
it('should apply the color scheme across main tabs', () => { it('should apply the color scheme across main tabs', () => {
@ -557,7 +557,7 @@ describe('Dashboard edit', () => {
cy.get('[data-test-chart-name="Trends"] .line .nv-legend-symbol') cy.get('[data-test-chart-name="Trends"] .line .nv-legend-symbol')
.first() .first()
.should('have.css', 'fill', 'rgb(204, 0, 134)'); .should('have.css', 'fill', 'rgb(156, 52, 152)');
// change scheme now that charts are rendered across the main tabs // change scheme now that charts are rendered across the main tabs
editDashboard(); editDashboard();

View File

@ -89,6 +89,6 @@ describe('Visualization > Distribution bar chart', () => {
).should('exist'); ).should('exist');
cy.get('.dist_bar .nv-legend .nv-legend-symbol') cy.get('.dist_bar .nv-legend .nv-legend-symbol')
.first() .first()
.should('have.css', 'fill', 'rgb(255, 90, 95)'); .should('have.css', 'fill', 'rgb(41, 105, 107)');
}); });
}); });

View File

@ -85,7 +85,7 @@ describe('Visualization > Line', () => {
).should('exist'); ).should('exist');
cy.get('.line .nv-legend .nv-legend-symbol') cy.get('.line .nv-legend .nv-legend-symbol')
.first() .first()
.should('have.css', 'fill', 'rgb(255, 90, 95)'); .should('have.css', 'fill', 'rgb(41, 105, 107)');
}); });
it('should work with adhoc metric', () => { it('should work with adhoc metric', () => {

View File

@ -24,27 +24,19 @@ const schemes = [
id: 'bnbColors', id: 'bnbColors',
label: 'Airbnb Colors', label: 'Airbnb Colors',
colors: [ colors: [
'#ff5a5f', // rausch '#29696B',
'#7b0051', // hackb '#5BCACE',
'#007A87', // kazan '#F4B02A',
'#00d1c1', // babu '#F1826A',
'#8ce071', // lima '#792EB2',
'#ffb400', // beach '#C96EC6',
'#b4a76c', // barol '#921E50',
'#ff8083', '#B27700',
'#cc0086', '#9C3498',
'#00a1b3', '#9C3498',
'#00ffeb', '#E4679D',
'#bbedab', '#C32F0E',
'#ffd266', '#9D63CA',
'#cbc29a',
'#ff3339',
'#ff1ab1',
'#005c66',
'#00b3a5',
'#55d12e',
'#b37e00',
'#988b4e',
], ],
}, },
].map(s => new CategoricalScheme(s)); ].map(s => new CategoricalScheme(s));

View File

@ -42,7 +42,7 @@ export const Basic = () => {
allColumnsY: 'LAT', allColumnsY: 'LAT',
clusteringRadius: '60', clusteringRadius: '60',
globalOpacity: 1, globalOpacity: 1,
mapboxColor: 'rgb(0, 122, 135)', mapboxColor: 'rgb(244, 176, 42)',
mapboxLabel: [], mapboxLabel: [],
mapboxStyle: 'mapbox://styles/mapbox/light-v9', mapboxStyle: 'mapbox://styles/mapbox/light-v9',
pandasAggfunc: 'sum', pandasAggfunc: 'sum',