Git Product home page Git Product logo

feedback-component's People

Contributors

alexmacarthur avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

feedback-component's Issues

Custom Properties for Font Styling Not Taking Effect

Proposed Feature or Bug

The --feedback-component-font-size and presumably all other font-related CSS custom properties are not taking effect correctly. Instead, more specific rules on the parent are winning out.

Example Code:

<style>
body {
     font-size: 16px;
}

:root {
     --feedback-component-font-size: 32px;
}
</style>

<!-- The rendered font size is still 16px, even though it should be 32px. -->
<feedback-component></feedback-component>

Error on NextJS with typescript build

Hi, I'm new in development.

I need to refactor the code, add some style and remove bugs, but I don't understand how.
I have to errors within:

  1. stylelint: Could not find "@ramseyinhouse/stylelint-config". Do you need a configBasedir?
  2. ⨯ node_modules@ramseyinhouse\feedback-component\dist\index.umd.js (1:1453) @ HTMLElement
    ⨯ ReferenceError: HTMLElement is not defined
    at webpack_require (C:\Users\RudenkoSerhii\Documents\GitHub\nextjs-template.next\server\webpack-runtime.js:33:42)
    at eval (./app/components/Feedback/Feedback.tsx:18:25)
    at (ssr)/./app/components/Feedback/Feedback.tsx (C:\Users\RudenkoSerhii\Documents\GitHub\nextjs-template.next\server\app\page.js:250:1)
    at webpack_require (C:\Users\RudenkoSerhii\Documents\GitHub\nextjs-template.next\server\webpack-runtime.js:33:42)
    at eval (./app/page.tsx:14:87)
    at (ssr)/./app/page.tsx (C:\Users\RudenkoSerhii\Documents\GitHub\nextjs-template.next\server\app\page.js:327:1)
    at webpack_require (C:\Users\RudenkoSerhii\Documents\GitHub\nextjs-template.next\server\webpack-runtime.js:33:42)
    at JSON.parse ()
    null
    when I remove component, everything is Ok.
  3. I need to change background color buttons. When I changed "background: var(--feedback-component-button-background-color, #e8eced);" nothing happening

Feedback.tsx component:

"use client";

import { useState } from "react";
import LikeIconSvg from "../SVGs/LikeIconSvg";
import DislikeIconSvg from "../SVGs/DislikeIconSvg";
import Script from "next/script";
let feedbackComponent = require("@ramseyinhouse/feedback-component");

declare global {
namespace JSX {
interface IntrinsicElements {
["feedback-component"]: React.DetailedHTMLProps<
React.HTMLAttributes,
HTMLElement
>;
}
}
}
export const Feedback = () => {
const [sadFeedback, setSadFeedback] = useState(false);
const [changeColor, setChangeColor] = useState(false);

const handleFeedback = () => {
setChangeColor(!changeColor);
};

const handleBadFeedback = () => {
setSadFeedback(true);
};

return (
<>
{sadFeedback ? (


<iframe data-tally-src="https://tally.so/embed/mBprE7?alignLeft=1&hideTitle=1&transparentBackground=1&dynamicHeight=1" loading="lazy" height="446" title="Feedback" ></iframe>
<Script
id="tally-js"
src="https://tally.so/widgets/embed.js"
onLoad={() => {
Tally.loadEmbeds();
}}
/>

) : (
in next comment component here
)}
</>
);
};

Hope You help me)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.