Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Added Button Base Component #275

Merged
merged 42 commits into from
Mar 6, 2022
Merged

Added Button Base Component #275

merged 42 commits into from
Mar 6, 2022

Conversation

ClientCrash
Copy link
Member

@ClientCrash ClientCrash commented Sep 18, 2021

Description
Added Button Base Component

  • Add Button Component
  • Add Styling
  • Create proper onClick

Issue
Closes #279

This was linked to issues Sep 18, 2021
@MarcelCoding MarcelCoding marked this pull request as draft September 18, 2021 21:32
@MarcelCoding MarcelCoding changed the title [WIP] Added Button Base Component Added Button Base Component Sep 18, 2021
@ClientCrash
Copy link
Member Author

Todo: Make new click method.

@MarcelCoding
Copy link
Member

Then you should use CSS variables because you can change them at runtime scss variables are fixed at build time.

@ClientCrash ClientCrash changed the base branch from master to issue/260-base-components September 19, 2021 11:44
@ClientCrash ClientCrash marked this pull request as ready for review September 22, 2021 19:11
@ClientCrash ClientCrash marked this pull request as draft October 14, 2021 19:11
@ClientCrash ClientCrash marked this pull request as ready for review October 14, 2021 19:32
@MarcelCoding MarcelCoding mentioned this pull request Oct 14, 2021
@MarcelCoding
Copy link
Member

LGTM!

@@ -0,0 +1,79 @@
@import 'theme-colors';
button{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Format CSS, maybe use scss loop and map.

Copy link
Member

@MarcelCoding MarcelCoding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides the ugly formatted CSS, it seems like everything is fine now.


import { StyledButtonComponent } from './styled-button.component';

describe('StyledButtonComponent', () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With version 3, we want to encourage the use of unit tests. Some basic tests for the flavors and the "disabled"-property would be nice and won't take much time! :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything else is fine

@Tristan-H11 Tristan-H11 merged commit ee25cf8 into cryptic-game:issue/260-base-components Mar 6, 2022
MarcelCoding pushed a commit that referenced this pull request Mar 6, 2022
MarcelCoding pushed a commit that referenced this pull request Mar 6, 2022
@Tristan-H11 Tristan-H11 mentioned this pull request Mar 6, 2022
MarcelCoding pushed a commit that referenced this pull request Mar 14, 2022
@Tristan-H11 Tristan-H11 added this to the v0.3.0-pre-alpha milestone Mar 16, 2022
Tristan-H11 pushed a commit that referenced this pull request Mar 21, 2022
Tristan-H11 pushed a commit that referenced this pull request Mar 21, 2022
Tristan-H11 pushed a commit that referenced this pull request Mar 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Add Base Components Buttons Base Components without Styling
3 participants