When her husband died, she felt like killing herself.

Literal

Husband [subject-が] died time she [topic-は] suicide-want-to mood [into-に] became.

自殺したい気分になった = 'came to feel like wanting to commit suicide.' Heavy subject matter expressed through the ~たい気分になる pattern (came to feel like wanting to).