Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8 digit hex codes #805

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/components/block/__snapshots__/spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ exports[`Block \`triangle="hide"\` 1`] = `
<div
style={
Object {
"borderColor": "transparent transparent #22194d transparent",
"borderColor": "transparent transparent #22194dff transparent",
"borderStyle": "solid",
"borderWidth": "0 10px 10px 10px",
"display": "none",
Expand All @@ -45,7 +45,7 @@ exports[`Block \`triangle="hide"\` 1`] = `
"WebkitBorderRadius": "6px 6px 0 0",
"WebkitJustifyContent": "center",
"alignItems": "center",
"background": "#22194d",
"background": "#22194dff",
"borderRadius": "6px 6px 0 0",
"display": "flex",
"height": "110px",
Expand All @@ -64,7 +64,7 @@ exports[`Block \`triangle="hide"\` 1`] = `
}
}
>
#22194d
#22194dff
</div>
</div>
<div
Expand Down Expand Up @@ -386,7 +386,7 @@ exports[`Block \`triangle="hide"\` 1`] = `
"width": "100%",
}
}
value="#22194D"
value="#22194DFF"
/>
</div>
</div>
Expand Down Expand Up @@ -417,7 +417,7 @@ exports[`Block renders correctly 1`] = `
<div
style={
Object {
"borderColor": "transparent transparent #22194d transparent",
"borderColor": "transparent transparent #22194dff transparent",
"borderStyle": "solid",
"borderWidth": "0 10px 10px 10px",
"height": "0px",
Expand All @@ -437,7 +437,7 @@ exports[`Block renders correctly 1`] = `
"WebkitBorderRadius": "6px 6px 0 0",
"WebkitJustifyContent": "center",
"alignItems": "center",
"background": "#22194d",
"background": "#22194dff",
"borderRadius": "6px 6px 0 0",
"display": "flex",
"height": "110px",
Expand All @@ -456,7 +456,7 @@ exports[`Block renders correctly 1`] = `
}
}
>
#22194d
#22194dff
</div>
</div>
<div
Expand Down Expand Up @@ -778,7 +778,7 @@ exports[`Block renders correctly 1`] = `
"width": "100%",
}
}
value="#22194D"
value="#22194DFF"
/>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/chrome/__snapshots__/spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ exports[`Chrome renders correctly 1`] = `
"width": "100%",
}
}
value="#22194D"
value="#22194DFF"
/>
<label
htmlFor="rc-editable-input-1"
Expand Down
10 changes: 8 additions & 2 deletions src/components/compact/CompactFields.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const CompactFields = ({ hex, rgb, onChange }) => {
display: 'none',
},
RGBwrap: {
flex: '3',
flex: '2',
position: 'relative',
},
RGBinput: {
Expand All @@ -57,7 +57,7 @@ export const CompactFields = ({ hex, rgb, onChange }) => {
position: 'absolute',
top: '3px',
left: '0px',
lineHeight: '16px',
lineHeight: '14px',
textTransform: 'uppercase',
fontSize: '12px',
color: '#999',
Expand Down Expand Up @@ -108,6 +108,12 @@ export const CompactFields = ({ hex, rgb, onChange }) => {
value={ rgb.b }
onChange={ handleChange }
/>
<EditableInput
style={{ wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel }}
label="a"
value={ rgb.a }
onChange={ handleChange }
/>
</div>
)
}
Expand Down
Loading