Skip to content
Open
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
15 changes: 8 additions & 7 deletions src/color-picker/components/PickerDropdown.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* @flow */

import React from 'react';
import Button from '../../button';
import SvPanel from './SvPanel';
import HueSlider from './HueSlider';
import AlphaSlider from './AlphaSlider';
Expand Down Expand Up @@ -35,19 +36,19 @@ export default class PickerDropdown extends Component {
{showAlpha && <AlphaSlider ref="alpha" color={color} />}
<div className="el-color-dropdown__btns">
<span className="el-color-dropdown__value">{currentColor}</span>
<a
href="JavaScript:"
className="el-color-dropdown__link-btn"
<Button
type="text"
size="small"
onClick={() => onClear()}
>
{Locale.t('el.colorpicker.clear')}
</a>
<button
className="el-color-dropdown__btn"
</Button>
<Button
size="small"
onClick={() => onPick()}
>
{Locale.t('el.colorpicker.confirm')}
</button>
</Button>
</div>
</div>
</View>
Expand Down