merge with 2.0.0-m3

This commit is contained in:
Florian Scholdei
2019-09-19 12:45:11 +02:00
2 changed files with 12 additions and 3 deletions

View File

@@ -8,12 +8,17 @@ type Props = {
body: any, body: any,
footer?: any, footer?: any,
active: boolean, active: boolean,
className?: string className?: string,
headColor: string
}; };
class Modal extends React.Component<Props> { class Modal extends React.Component<Props> {
static defaultProps = {
headColor: "light"
};
render() { render() {
const { title, closeFunction, body, footer, active, className } = this.props; const { title, closeFunction, body, footer, active, className, headColor } = this.props;
const isActive = active ? "is-active" : null; const isActive = active ? "is-active" : null;
@@ -26,7 +31,7 @@ class Modal extends React.Component<Props> {
<div className={classNames("modal", className, isActive)}> <div className={classNames("modal", className, isActive)}>
<div className="modal-background" /> <div className="modal-background" />
<div className="modal-card"> <div className="modal-card">
<header className="modal-card-head"> <header className={classNames("modal-card-head", `has-background-${headColor}`)}>
<p className="modal-card-title is-marginless">{title}</p> <p className="modal-card-title is-marginless">{title}</p>
<button <button
className="delete" className="delete"

View File

@@ -207,6 +207,10 @@ $danger-25: scale-color($danger, $lightness: 75%);
background-color: $danger-25; background-color: $danger-25;
} }
.has-background-brown {
background-color: #000000b3;
}
// tags // tags
.tag:not(body) { .tag:not(body) {
border: 1px solid transparent; border: 1px solid transparent;