Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
logging-scratch-gui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Goessmann
logging-scratch-gui
Commits
14a18e1d
Commit
14a18e1d
authored
6 years ago
by
Ben Wheeler
Browse files
Options
Downloads
Patches
Plain Diff
restored close button styling; make close button appear on alert errors
parent
162d61ae
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/components/alerts/alert.css
+1
-1
1 addition, 1 deletion
src/components/alerts/alert.css
src/components/close-button/close-button.css
+9
-0
9 additions, 0 deletions
src/components/close-button/close-button.css
src/lib/alerts/index.jsx
+2
-0
2 additions, 0 deletions
src/lib/alerts/index.jsx
with
12 additions
and
1 deletion
src/components/alerts/alert.css
+
1
−
1
View file @
14a18e1d
...
...
@@ -45,7 +45,7 @@
}
.alert-close-button-container
{
outline-style
:
none
;
outline-style
:
none
;
width
:
30px
;
height
:
30px
;
align-self
:
center
;
...
...
This diff is collapsed.
Click to expand it.
src/components/close-button/close-button.css
+
9
−
0
View file @
14a18e1d
...
...
@@ -7,6 +7,7 @@
justify-content
:
center
;
overflow
:
hidden
;
/* Mask the icon animation */
background-color
:
$
ui-black-transparent
;
border-radius
:
50%
;
font-family
:
"Helvetica Neue"
,
Helvetica
,
Arial
,
sans-serif
;
user-select
:
none
;
...
...
@@ -16,21 +17,29 @@
.close-button.large
:hover
{
transform
:
scale
(
1.1
,
1.1
);
box-shadow
:
0
0
0
4px
$
ui-black-transparent
;
}
.close-button.large.orange
:hover
{
transform
:
scale
(
1.1
,
1.1
);
box-shadow
:
0px
0px
0px
4px
hsla
(
29
,
100%
,
54%
,
0.2
);
}
.small
{
width
:
0.825rem
;
height
:
0.825rem
;
background-color
:
$
motion-primary
;
color
:
$
ui-white
;
}
.large
{
width
:
1.75rem
;
height
:
1.75rem
;
box-shadow
:
0
0
0
2px
$
ui-black-transparent
;
}
.large.orange
{
background-color
:
hsla
(
29
,
100%
,
54%
,
0.2
);
box-shadow
:
0px
0px
0px
2px
hsla
(
29
,
100%
,
54%
,
0.2
);
}
.close-icon
{
...
...
This diff is collapsed.
Click to expand it.
src/lib/alerts/index.jsx
+
2
−
0
View file @
14a18e1d
...
...
@@ -49,6 +49,7 @@ const alerts = [
{
alertId
:
'
creatingError
'
,
clearList
:
[
'
creating
'
,
'
createSuccess
'
],
closeButton
:
true
,
content
:
(
<
FormattedMessage
defaultMessage
=
"Could not create the project. Please try again!"
...
...
@@ -61,6 +62,7 @@ const alerts = [
{
alertId
:
'
savingError
'
,
clearList
:
[
'
saving
'
,
'
saveSuccess
'
],
closeButton
:
true
,
content
:
(
<
FormattedMessage
defaultMessage
=
"Could not save the project. Please try again!"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment