Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
embl.org
vf-core-mirror
Commits
2951b2ae
Commit
2951b2ae
authored
Oct 25, 2021
by
Ken Hawkins
Browse files
vf-button angular hotfix
parent
e3fdeaf5
Pipeline
#206833
passed with stages
in 7 minutes and 28 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
6 deletions
+9
-6
components/vf-button/CHANGELOG.md
components/vf-button/CHANGELOG.md
+4
-0
components/vf-button/README.md
components/vf-button/README.md
+1
-1
components/vf-button/package.json
components/vf-button/package.json
+1
-1
components/vf-button/vf-button.angular.component.ts
components/vf-button/vf-button.angular.component.ts
+1
-1
components/vf-button/vf-button.scss
components/vf-button/vf-button.scss
+2
-3
No files found.
components/vf-button/CHANGELOG.md
View file @
2951b2ae
### 2.0.0-alpha.3
*
Fixes for experimental angular support.
### 2.0.0-alpha.2
*
Adds experimental angular support. See README.md for more.
...
...
components/vf-button/README.md
View file @
2951b2ae
...
...
@@ -55,7 +55,7 @@ As of vf-button v2.0.0-alpha.2 vf-button has experimental Angular support.
1.
install
`yarn add @visual-framework/vf-button`
2.
import in your app.module
```
import { VfButton } from "@visual-framework/button/button.component";
import { VfButton } from "@visual-framework/
vf-
button/
vf-
button.
angular.
component
.ts
";
@NgModule({
declarations: [VfButton, YourOtherComponents],
...
...
components/vf-button/package.json
View file @
2951b2ae
{
"version"
:
"2.0.0-alpha.
2
"
,
"version"
:
"2.0.0-alpha.
3
"
,
"name"
:
"@visual-framework/vf-button"
,
"description"
:
"vf-button component"
,
"homepage"
:
"https://stable.visual-framework.dev/"
,
...
...
components/vf-button/vf-button.angular.component.ts
View file @
2951b2ae
...
...
@@ -18,7 +18,7 @@ import { Component, Input, OnInit } from "@angular/core";
<ng-content></ng-content>
</button>
`
,
styleUrls
:
[
"
./button.
component.
css
"
]
styleUrls
:
[
"
./
vf-
button.
s
css
"
]
})
export
class
VfButton
implements
OnInit
{
@
Input
()
primary
=
false
;
...
...
components/vf-button/vf-button.scss
View file @
2951b2ae
...
...
@@ -11,8 +11,8 @@
// vf-button
$button-hover-fix
:
-5px
-5px
rgba
(
0
,
0
,
0
,
0
);
.vf-button
{
.vf-button
{
--vf-button__color__background--default
:
var
(
--
vf-color--grey
);
--vf-button__color__background--default-dark
:
var
(
--
vf-color--grey--darkest
);
--vf-button__color__border--default-visited
:
var
(
--
vf-color--grey--lightest
);
...
...
@@ -43,10 +43,9 @@ $button-hover-fix: -5px -5px rgba(0, 0, 0, 0);
transform
:
translate
(
0
,
0
);
transition
:
all
linear
125ms
;
// Ideally we want this to be 50ms but there's an issue in Webkit/Safari on box-shadow animations
// additionally we can't do a pseud
e
:before/:after as we need to support <button> elements
// additionally we can't do a pseud
o
:before/:after as we need to support <button> elements
// https://github.com/visual-framework/vf-core/pull/632
// Hover and Focus Styles
&
:focus
,
&
:hover
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment