Skip to content
Snippets Groups Projects
Commit 6ed8b09d authored by Bobak Oftadeh's avatar Bobak Oftadeh
Browse files

Merge branch 'fix-modal-structure' of https://github.com/BobakOftadeh/bigbluebutton into testRecord

parents 17ccd17e 37471169
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,7 @@ class ModalSimple extends Component { ...@@ -51,7 +51,7 @@ class ModalSimple extends Component {
contentLabel={title} contentLabel={title}
{...otherProps} {...otherProps}
> >
{hideBorder ? <header className={styles.headerNoBorder}> <header className={hideBorder ? styles.headerNoBorder : styles.header}>
<h1 className={styles.title}>{title}</h1> <h1 className={styles.title}>{title}</h1>
<Button <Button
className={styles.dismiss} className={styles.dismiss}
...@@ -62,18 +62,7 @@ class ModalSimple extends Component { ...@@ -62,18 +62,7 @@ class ModalSimple extends Component {
onClick={this.handleDismiss} onClick={this.handleDismiss}
aria-describedby="modalDismissDescription" aria-describedby="modalDismissDescription"
/> />
</header> : <header className={styles.header}> </header>
<h1 className={styles.title}>{title}</h1>
<Button
className={styles.dismiss}
label={dismiss.label}
icon="close"
circle
hideLabel
onClick={this.handleDismiss}
aria-describedby="modalDismissDescription"
/>
</header>}
<div className={styles.content}> <div className={styles.content}>
{this.props.children} {this.props.children}
</div> </div>
......
...@@ -15,16 +15,14 @@ ...@@ -15,16 +15,14 @@
padding: var(--line-height-computed) 0; padding: var(--line-height-computed) 0;
} }
.header { .headerNoBorder, .header {
display: flex; display: flex;
padding: calc(var(--line-height-computed) / 2) 0;
border-bottom: var(--border-size) solid var(--color-gray-lighter);
flex-shrink: 0; flex-shrink: 0;
} }
.headerNoBorder { .header {
display: flex; padding: calc(var(--line-height-computed) / 2) 0;
flex-shrink: 0; border-bottom: var(--border-size) solid var(--color-gray-lighter);
} }
.title { .title {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment