Skip to content

[ColorPicker]: fix button html type by using Button component. #1070

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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