Skip to content

Commit

Permalink
feat(styles): remove legacy browser clearfix (#3639)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Feb 10, 2023
1 parent aa05398 commit 191b0ab
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 6 deletions.
15 changes: 15 additions & 0 deletions projects/demo/src/modules/components/island/examples/3/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,21 @@ <h3 class="title">Title!</h3>
></tui-error>
</form>
</tui-island>
<tui-island
size="l"
textAlign="center"
class="my-panel tui-space_top-5"
>
<h3 class="title">Panel</h3>
<button
tuiAction
icon="tuiIconStarLarge"
type="button"
class="action"
>
And now for something completely different
</button>
</tui-island>
</div>
<div class="tui-col_md-4">
<a
Expand Down
26 changes: 26 additions & 0 deletions projects/demo/src/modules/components/island/examples/3/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,29 @@
margin: -1.25rem -1.25rem 1.25rem;
border-radius: var(--tui-radius-l) var(--tui-radius-l) 0 0;
}

.my-panel {
display: flex;
height: 15rem;
flex-direction: column;
justify-content: space-between;
padding: 0;
overflow: hidden;

.title {
margin-top: 2.1875rem;
}

[tuiaction] {
box-shadow: none;
border: 1px solid var(--tui-base-03);
border-bottom: none;
border-radius-right-bottom: 0;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;

&:hover {
transform: translateY(-1.6rem);
}
}
}
3 changes: 3 additions & 0 deletions projects/demo/src/modules/components/island/island.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
TuiTextfieldControllerModule,
} from '@taiga-ui/core';
import {
TuiActionModule,
TuiFieldErrorPipeModule,
TuiInputPhoneModule,
TuiIslandModule,
Expand Down Expand Up @@ -39,6 +40,8 @@ import {ExampleTuiIslandComponent} from './island.component';
TuiAddonDocModule,
TuiNotificationModule,
StylesInfoModule,
TuiActionModule,
TuiButtonModule,
RouterModule.forChild(tuiGenerateRoutes(ExampleTuiIslandComponent)),
],
declarations: [
Expand Down
6 changes: 0 additions & 6 deletions projects/styles/markup/tui-island.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@
pointer-events: none;
}

&:after {
content: '';
display: table;
clear: both;
}

&:focus,
&:hover:focus {
&:before {
Expand Down

0 comments on commit 191b0ab

Please sign in to comment.