question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[react] Greetings message does not display

See original GitHub issue

Describe the bug The greetings message (Hello, $USERNAME) does not display.

To Reproduce Go to the greetings documentation example, and see no message: https://docs.amplify.aws/ui/auth/authenticator/q/framework/react#greetings

If you right click and inspect the greetings element in Firefox, you’ll be able to see a span element containing the text Hello, Test Username in the DOM. It is not showing in the page, though.

This issue also affects any attempt I’ve made to use the greeter.

Expected behavior Message Hello, Test Username is visible

Screenshots Capture

Additional context

This issue is visible for me in both Firefox 75.0 (64-bit), and Chrome Version 81.0.4044.122 (Official Build) (64-bit). I’m using Windows Server 2019.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jordanranzcommented, Apr 30, 2020

@mtliendo the color and styling should be done using CSS rather than adding to the prop api. Could you try adding the following to your App.css or similar file:

amplify-greetings {
	--background-color: black;
	--border-color: black;
	color: white;
}

If this doesn’t work for you please feel free to open a new feature request with your asks

0reactions
github-actions[bot]commented, May 20, 2022

This issue has been automatically locked since there hasn’t been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to display error messages in a React application
How do we display error messages? Let's say we want to display an error message at the top of our view when something...
Read more >
Chat Messages screen doesn't update ... - Stack Overflow
I'm trying to learning about chat app using expo-react native-typescript. What im doing so far is like below : ChatRoomScreen.tsx
Read more >
React.Component
This page contains a detailed API reference for the React component class definition. It assumes you're familiar with fundamental React concepts, ...
Read more >
Receive messages in a JavaScript client - Firebase - Google
Handle messages when your web app is in the background. All messages received while the app is in the background trigger a display...
Read more >
Add reactions to messages - Google Support
To make messages more visual and playful, you can react to messages with an ... an iOS user reacts to text messages, not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found