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

feat: breakpoints js and scss media variables exported #89

Merged
merged 4 commits into from
Mar 9, 2024

Conversation

juliaam
Copy link
Contributor

@juliaam juliaam commented Mar 1, 2024

Closes #87

Feature

Criação dos breakpoints para uso no javascript

Bugfix
  • Description

Através do módulo, é possível registrar/remover callbacks que retornem true ou false dos breakpoints de media query (tamanho 320px, 360px, de acordo com as variáveis originais dos breakpoints anteriormente implementados (referência: #74 ) ).

  • Cause

    Não havia módulos de breakpoints para uso nos arquivos js.

  • Solution

    Criação do módulo que permite retornar callbacks para os breakpoints, informando os valores do tamanho da tela atual.

Visual evidences:

image
image
image

Checklist
  • Issue linked
  • Build working correctly
  • Tests created
Additional info:

Forma de uso:

import {listenCallBack} from 'utils/breakpoints/breakpoints';

 listenCallBack('from320', (value) => {
    ... do this
  })

@juliaam juliaam marked this pull request as draft March 1, 2024 22:48
@juliaam juliaam marked this pull request as ready for review March 6, 2024 18:14
src/utils/breakpoints/breakpoints.js Outdated Show resolved Hide resolved
src/utils/breakpoints/breakpoints.js Outdated Show resolved Hide resolved
src/utils/breakpoints/breakpoints.js Outdated Show resolved Hide resolved
src/utils/breakpoints/breakpoints.js Outdated Show resolved Hide resolved
@PiluVitu PiluVitu merged commit 75d9ae3 into devhatt:main Mar 9, 2024
DominMFD pushed a commit to DominMFD/pet-dex-frontend that referenced this pull request Mar 27, 2024
* feat: breakpoints js and scss media variables exported

fix devhatt#87

* feat: breakpoints withou validation

fix devhatt#87

* feat: validations breakpoints

* fix: change incorrect names and created a foreach to make it more simplified

87
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Criação de módulo dos breakpoints
4 participants