This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fitty from "fitty" | |
import PropTypes from "prop-types" | |
import Parser from "html-react-parser" | |
import {PureComponent} from "react" | |
class FitText extends PureComponent { | |
/** | |
* Define default value for reference element | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.switch-field { | |
overflow: hidden; | |
input[type="radio"] { | |
display: none; | |
&:checked + label { | |
background-color: $color-light-orange; | |
border-color: $color-primary-orange; | |
z-index: 2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class QuantityInput { | |
/** | |
* QuantityInput constructor | |
* | |
* @param $inputElement | |
* @param $plusElement | |
* @param $minusElement | |
*/ | |
constructor($inputElement = null, $plusElement = null, $minusElement = null) { | |
//validations |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
'use strict'; | |
//handle browsers that do not support download attribute | |
if (Modernizr.adownload === false) { | |
//get array of all links and area's with download attributes | |
var $downloadElements = Array.prototype.slice.call(document.querySelectorAll('a[download], area[download]')); | |
//remove download attributes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace PTH; | |
/** | |
* Class GraphqlCacheComponent | |
* | |
* @package PTH | |
*/ | |
class GraphqlCacheComponent extends Singleton |