Skip to content
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

fix(title): remove previous title css #1114

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions MIGRATION.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
<h1>Migration Guide</h1>

- [From version 2.2.0 to 2.3.0](#from-version-220-to-230)
- [From version 2.0.x to 2.1.0](#from-version-20x-to-210)
- [From version 1.x to 2.0.x](#from-version-1x-to-20x)
- [Date Input](#date-input)
- [All](#package-react-toolkit-all)

# From version 2.2.0 to 2.3.0

## Title

The Title component used to have some different css based on a specific `classModifier` or `className`. For `classModifier` it was called `bigTitle` and for `className` it was `af-subtitle`. This two custom css have now been deleted for the component. If you are using them on your project, you should remove them and make this implementation yourself.
The Title component only implement what our UXs have designed.

# From version 2.0.x to 2.1.0

## Toolkit-core
Expand Down
26 changes: 0 additions & 26 deletions packages/title/src/title.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ h4.af-title::after {
margin-top: 0;
}

&--bigTitle {
font-size: 4.25rem;
font-weight: 600;
}

&--content {
color: $color-mine-shaft;
border-bottom: 1px solid $color-silver;
Expand All @@ -56,24 +51,3 @@ h4.af-title::after {
}
}
}

.af-subtitle {
color: $color-mine-shaft;
position: relative;
overflow: hidden;
width: 100%;
font-weight: 600;

&::after {
content: '';
position: absolute;
height: 2px;
width: 100%;
z-index: 1;
margin-left: 2rem;
top: 50%;
transform: (-50%, 0);
background: $color-dusty-gray;
opacity: 0.3;
}
}
Loading