can we change the colour of "Forgot your password?" in the cognito UI login page ?

1

I wanted to change the colour of "Forgot your password?" link and possibly edit the link text as "Forgot password ?" . Is it possible in user pool UI customisation option or is there any other alternative ways to do it. Please let me know!

已提問 2 年前檢視次數 499 次
2 個答案
0

To change color, try something like this, in the CSS stylesheet that you can upload to theme the login page:

a.redirect-customizable {
    color: red;
}

To replace the link, you can also do that in CSS:

/* set font size to 0 */
a.redirect-customizable {
  font-size: 0;
}

/* add text with the original font size */
a.redirect-customizable:after {
    content: 'Text of the link';
    font-size: 14px;
}

You can also combine both:

a.redirect-customizable:after {
    content: 'Text of the link';
    font-size: 14px;
    color: red;
}
jeremie
已回答 2 年前
-2

Hi, thanks for reaching out with your question. Unfortunately, there is not a customization option for link color changing or modifying the text "forgot your password" on Cognito. This would be a feature request and you can keep track of new feature announcements through our What's New and Blog Pages for updates on potential new features being added. We don't have an ETA for if or when they'll implement the feature or not. You can create a custom UI to manage all your customizations on Cognito. Follow this link [1] for more details.

[1] - https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-app-ui-customization.html#cognito-user-pools-app-ui-customization-logo

What's New - https://aws.amazon.com/new/

Blog Page - https://aws.amazon.com/blogs/aws/

Let me know if you have any further questions.

已回答 2 年前
AWS
支援工程師
已審閱 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南