@@ -31,40 +31,42 @@ const items = [
3131 } ,
3232]
3333
34+ const mainDarkModeContainerStyle = { backgroundColor : "#212121" , padding : 16 }
35+
3436export const darkMode = ( ) => (
35- < div style = { { backgroundColor : "#212121" } } >
37+ < div style = { mainDarkModeContainerStyle } >
3638 < UsageBar darkMode items = { items } total = { 100 } />
3739 </ div >
3840)
3941
4042export const darkModeWithoutLabels = ( ) => (
41- < div style = { { backgroundColor : "#212121" } } >
43+ < div style = { mainDarkModeContainerStyle } >
4244 < UsageBar removeLabels darkMode items = { items } total = { 100 } />
4345 </ div >
4446)
4547
4648export const darkModeWithPercentages = ( ) => (
47- < div style = { { backgroundColor : "#212121" } } >
49+ < div style = { mainDarkModeContainerStyle } >
4850 < UsageBar showPercentage darkMode items = { items } total = { 100 } />
4951 </ div >
5052)
5153
5254export const darkModeCompact = ( ) => (
53- < div style = { { backgroundColor : "#212121" } } >
55+ < div style = { mainDarkModeContainerStyle } >
5456 < UsageBar showPercentage compactLayout darkMode items = { items } total = { 100 } />
5557 </ div >
5658)
5759
5860export const darkModeCompactWithoutLabels = ( ) => (
59- < div style = { { backgroundColor : "#212121" } } >
61+ < div style = { mainDarkModeContainerStyle } >
6062 < UsageBar removeLabels compactLayout darkMode items = { items } total = { 100 } />
6163 </ div >
6264)
6365
6466export const error = ( ) => (
6567 < >
6668 < p > If sum of values exceeds total.</ p >
67- < div style = { { backgroundColor : "#212121" } } >
69+ < div style = { mainDarkModeContainerStyle } >
6870 < UsageBar items = { items } total = { 50 } />
6971 </ div >
7072 </ >
0 commit comments